-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
56 lines (50 loc) · 1.29 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.2.0)
project(nfldap)
find_package(PkgConfig REQUIRED)
find_package (Threads REQUIRED)
pkg_search_module(LIBMONGOCXX libmongocxx REQUIRED)
pkg_search_module(OPENSSL openssl REQURED)
pkg_search_module(YAMLCPP yaml-cpp REQURED)
add_executable(nfldap
ber.cpp
exceptions.cpp
ldapproto.cpp
loguru.cpp
main.cpp
mongobackend.cpp
passwords.cpp
)
set_property(TARGET nfldap PROPERTY CXX_STANDARD 11)
set_property(TARGET nfldap PROPERTY CXX_STANDARD_REQUIRED ON)
target_link_libraries(nfldap
${OPENSSL_LIBRARIES}
${LIBMONGOCXX_LIBRARIES}
${YAMLCPP_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${CMAKE_DL_LIBS}
)
target_include_directories(nfldap PUBLIC
${OPENSSL_INCLUDE_DIRS}
${YAMLCPP_INCLUDE_DIRS}
${LIBMONGOCXX_INCLUDE_DIRS}
)
target_compile_options(nfldap PUBLIC
${OPENSSL_CFLAGS_OTHER}
${YAMLCPP_CFLAGS_OTHER}
${LIBMONGOCXX_CFLAGS_OTHER}
)
add_executable(nfpasswd
nfpasswd.cpp
passwords.cpp
)
set_property(TARGET nfpasswd PROPERTY CXX_STANDARD 11)
set_property(TARGET nfpasswd PROPERTY CXX_STANDARD_REQUIRED ON)
target_link_libraries(nfpasswd
${OPENSSL_LIBRARIES}
)
target_include_directories(nfpasswd PUBLIC
${OPENSSL_INCLUDE_DIRS}
)
target_compile_options(nfpasswd PUBLIC
${OPENSSL_CFLAGS_OTHER}
)