File: CMakeLists.txt

package info (click to toggle)
linux-ftpd-ssl 0.17.36+0.3-2.2
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 2,524 kB
  • sloc: ansic: 3,875; yacc: 1,379; sh: 52; makefile: 48
file content (18 lines) | stat: -rw-r--r-- 475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
cmake_minimum_required(VERSION 3.7)
project(linux-ftpd-ssl)

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

find_library(USE_CRYPT crypt REQUIRED)
find_library(USE_PAM pam)

if(USE_PAM)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_PAM=1")
    #set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lpam")
endif()

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_FILE_OFFSET_BITS=64")

add_subdirectory(ftpd)
add_subdirectory(support)