File: CMakeLists.txt

package info (click to toggle)
netkit-rsh 0.17-24
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 844 kB
  • sloc: ansic: 3,825; makefile: 137; perl: 136; sh: 29
file content (36 lines) | stat: -rw-r--r-- 536 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

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

add_executable(
    in.rshd
    rshd.c
)
target_link_libraries(
    in.rshd
    ${LIBS}
)
install(
    TARGETS in.rshd
    DESTINATION ${SBIN_DIR}
)

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