File: CMakeLists.txt

package info (click to toggle)
netkit-ftp 0.17-34.1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 1,292 kB
  • sloc: ansic: 5,716; makefile: 36; sh: 13
file content (36 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (4)
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
31
32
33
34
35
36

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64")
if(USE_READLINE)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__USE_READLINE__")
endif()

add_executable(
    netkit-ftp
    cmds.c
    cmdtab.c
    domacro.c
    ftp.c
    main.c
    ruserpass.c
)
install(
    TARGETS netkit-ftp
    DESTINATION ${BIN_DIR}
)
if(USE_READLINE)
    target_link_libraries(
        netkit-ftp
        readline
    )
endif()
install(
    FILES ftp.1
    DESTINATION ${MAN_DIR}/man1/
    RENAME netkit-ftp.1
)

install(
    FILES netrc.5
    DESTINATION ${MAN_DIR}/man5/
    RENAME netkit-netrc.5
)