File: CMakeLists.txt

package info (click to toggle)
netkit-telnet 0.17-41.2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,412 kB
  • sloc: cpp: 6,451; ansic: 4,263; sh: 110; makefile: 64
file content (29 lines) | stat: -rw-r--r-- 576 bytes parent folder | download
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
cmake_minimum_required(VERSION 3.7)
project(netkit-telnet)

set(BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin")
set(SBIN_DIR "${CMAKE_INSTALL_PREFIX}/sbin")
set(MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man")

set(USE_GLIBC 1)

set(
    CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
    -D_GNU_SOURCE \
    -Ddebian \
    -DACCEPT_USERVAR \
    -Wall \
    -Wno-trigraphs \
")
set(
    CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
    -D_GNU_SOURCE \
    -Ddebian \
    -DACCEPT_USERVAR \
    -Wall \
    -Wno-trigraphs \
")

add_subdirectory(telnet)
add_subdirectory(telnetd)
add_subdirectory(telnetlogin)