File: CMakeLists.txt

package info (click to toggle)
netkit-telnet 0.17-42
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 2,444 kB
  • sloc: cpp: 6,451; ansic: 4,267; sh: 110; makefile: 64
file content (41 lines) | stat: -rw-r--r-- 644 bytes parent folder | download | duplicates (2)
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
37
38
39
40
41

set(CMAKE_C_FLAGS "\
    ${CMAKE_C_FLAGS} \
    -DISSUE_FILE='\"/etc/issue.net\"' \
    -DPARANOID_TTYS \
    -DNO_REVOKE \
    -DKLUDGELINEMODE \
    -DDIAGNOSTICS \
    -DLOGIN_WRAPPER='\"/usr/lib/telnetlogin\"' \
")

add_executable(
    in.telnetd
    global.c
    setproctitle.c
    slc.c
    state.c
    sys_term.c
    telnetd.c
    termstat.c
    utility.c
)
target_link_libraries(
    in.telnetd
    ncurses
    util
)
install(
    TARGETS in.telnetd
    DESTINATION ${SBIN_DIR}
)

install(
    FILES telnetd.8
    DESTINATION ${MAN_DIR}/man8/
    RENAME in.telnetd.8
)
install(
    FILES issue.net.5
    DESTINATION ${MAN_DIR}/man5/
)