File: CMakeLists.txt

package info (click to toggle)
netkit-rsh 0.17-20
  • links: PTS
  • area: main
  • in suites: buster
  • size: 824 kB
  • sloc: ansic: 3,825; makefile: 137; perl: 136; sh: 29
file content (55 lines) | stat: -rw-r--r-- 743 bytes parent folder | download | duplicates (3)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55

set(
    SRCS
    auth.c
    network.c
    rlogind.c
)
if(USE_PAM)
    set(
        SRCS
        ${SRCS}
        sockconv.c
    )
endif()

set(
    LIBS
    crypt
    util
)
if(USE_PAM)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_PAM")
    set(
        LIBS
        ${LIBS}
        dl
        pam
        pam_misc
    )
endif()

add_executable(
    in.rlogind
    ${SRCS}
)
target_link_libraries(
    in.rlogind
    ${LIBS}
)
install(
    TARGETS in.rlogind
    DESTINATION ${SBIN_DIR}
)

install(
    FILES rlogind.8
    DESTINATION ${MAN_DIR}/man8/
    RENAME in.rlogind.8
)
install(
    CODE "execute_process( \
        COMMAND ${CMAKE_COMMAND} -E create_symlink \
        in.rlogind.8 \$ENV{DESTDIR}${MAN_DIR}/man8/rlogind.8 \
    )"
)