Made compilable again. Now boost_system is explicitly needed. On the const map we...
[bpdyndnsd] / src / CMakeLists.txt
CommitLineData
6f994c17 1# Find Boost
63e1bf1f 2find_package(Boost COMPONENTS program_options filesystem regex serialization system REQUIRED)
6f994c17
TJ
3
4# Find CURL
5find_package(CURL)
6
7# Find OpenSSL (libcrypto)
8find_package(OpenSSL)
9
0ab5653f 10# Includes
77e65070
TJ
11include_directories( ${CMAKE_CURRENT_BINARY_DIR}
12 ${CMAKE_CURRENT_SOURCE_DIR}
6f994c17
TJ
13 ${CURL_INCLUDES}
14 ${OPENSSL_INCLUDES}
15 )
0ab5653f 16
77e65070
TJ
17configure_file ("${PROJECT_SOURCE_DIR}/src/version_info.h.in" "${PROJECT_BINARY_DIR}/src/version_info.h")
18
3abfd340
TJ
19# C++ sources
20set(cpp_sources
21 config.cpp
22 httphelper.cpp
23 ip_addr_helper.cpp
24 logger.cpp
25 main.cpp
26 net_helper.cpp
27 serializeservicecontainer.cpp
28 service.cpp
29 service_dhs.cpp
30 service_dyndns.cpp
31 service_dyns.cpp
32 service_easydns.cpp
33 service_gnudip.cpp
34 serviceholder.cpp
35 service_ods.cpp
36 service_tzo.cpp
37 service_zoneedit.cpp
38 tcp_service.cpp
39 updater.cpp
40 util.cpp
41 )
42
6f994c17 43# C++ headers
3abfd340 44set(cpp_headers
4de6a9b8
BS
45 config.hpp
46 httphelper.hpp
47 ip_addr_helper.hpp
48 ip_service.hpp
49 logger.hpp
50 net_helper.hpp
51 serializeservicecontainer.hpp
52 service_dhs.hpp
53 service_dyndns.hpp
54 service_dyns.hpp
55 service_easydns.hpp
56 service_gnudip.hpp
57 service.hpp
58 serviceholder.hpp
59 service_ods.hpp
60 service_tzo.hpp
61 service_zoneedit.hpp
62 tcp_service.hpp
63 updater.hpp
64 util.hpp
77e65070 65 version_info.h
3abfd340
TJ
66 )
67
68add_executable(bpdyndnsd ${cpp_sources} ${cpp_headers})
0ab5653f
TJ
69
70# Dependencies
6f994c17 71target_link_libraries(bpdyndnsd ${Boost_LIBRARIES} ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
0ab5653f
TJ
72
73# Install
74install(TARGETS bpdyndnsd DESTINATION bin)