File: CMakeLists.txt

package info (click to toggle)
libnfs 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,364 kB
  • sloc: ansic: 34,693; sh: 1,558; makefile: 302; xml: 178
file content (16 lines) | stat: -rw-r--r-- 387 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
list(APPEND CORE_LIBRARIES ${SOCKET_LIBRARY})

set(SOURCES nfs-cat
            nfs-ls)

if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
  list(APPEND SOURCES nfs-cp)
endif()

foreach(TARGET ${SOURCES})
  add_executable(${TARGET} ${TARGET}.c)
  target_link_libraries(${TARGET} ${CORE_LIBRARIES})
  add_dependencies(${TARGET} nfs)
endforeach()

add_definitions("-D_U_=__attribute__((unused))")