File: CMakeLists.txt

package info (click to toggle)
libnfs 5.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,648 kB
  • sloc: ansic: 39,600; sh: 1,654; makefile: 315; xml: 178
file content (30 lines) | stat: -rw-r--r-- 776 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
find_library(TALLOC_LIBRARY talloc)
find_library(TALLOC_EVENT_LIBRARY tevent)
find_library(EVENT_LIBARY event)

set(EXTRA_LIBRARIES "")

set(EXAMPLES nfsclient-async
            nfsclient-raw
            nfsclient-sync
            nfsclient-bcast
            nfsclient-listservers
            nfs-io
            nfs-ln
            portmap-client)

if(HAVE_TALLOC_TEVENT)
  list(APPEND EXAMPLES nfs4-cat-talloc)
  list(APPEND EXTRA_LIBRARIES ${TALLOC_EVENT_LIBRARY} ${TALLOC_LIBRARY})
endif()

if(EVENT_LIBARY)
  list(APPEND EXAMPLES nfs4-cat
                       portmap-server)
  list(APPEND EXTRA_LIBRARIES ${EVENT_LIBARY})
endif()

foreach(TARGET ${EXAMPLES})
  add_executable(${TARGET} ${TARGET}.c)
  target_link_libraries(${TARGET} nfs ${EXTRA_LIBRARIES})
endforeach()