Log if we don't update a service when switching from offline to online, otherwise...
[bpdyndnsd] / src / CMakeLists.txt
CommitLineData
6f994c17
TJ
1# Find Boost
2find_package(Boost COMPONENTS program_options filesystem regex serialization REQUIRED)
3
4# Find CURL
5find_package(CURL)
6
7# Find OpenSSL (libcrypto)
8find_package(OpenSSL)
9
0ab5653f 10# Includes
6f994c17
TJ
11include_directories( ${CMAKE_CURRENT_SOURCE_DIR}
12 ${CURL_INCLUDES}
13 ${OPENSSL_INCLUDES}
14 )
0ab5653f 15
3abfd340
TJ
16# C++ sources
17set(cpp_sources
18 config.cpp
19 httphelper.cpp
20 ip_addr_helper.cpp
21 logger.cpp
22 main.cpp
23 net_helper.cpp
24 serializeservicecontainer.cpp
25 service.cpp
26 service_dhs.cpp
27 service_dyndns.cpp
28 service_dyns.cpp
29 service_easydns.cpp
30 service_gnudip.cpp
31 serviceholder.cpp
32 service_ods.cpp
33 service_tzo.cpp
34 service_zoneedit.cpp
35 tcp_service.cpp
36 updater.cpp
37 util.cpp
38 )
39
6f994c17 40# C++ headers
3abfd340 41set(cpp_headers
4de6a9b8
BS
42 config.hpp
43 httphelper.hpp
44 ip_addr_helper.hpp
45 ip_service.hpp
46 logger.hpp
47 net_helper.hpp
48 serializeservicecontainer.hpp
49 service_dhs.hpp
50 service_dyndns.hpp
51 service_dyns.hpp
52 service_easydns.hpp
53 service_gnudip.hpp
54 service.hpp
55 serviceholder.hpp
56 service_ods.hpp
57 service_tzo.hpp
58 service_zoneedit.hpp
59 tcp_service.hpp
60 updater.hpp
61 util.hpp
3abfd340
TJ
62 )
63
64add_executable(bpdyndnsd ${cpp_sources} ${cpp_headers})
0ab5653f
TJ
65
66# Dependencies
6f994c17 67target_link_libraries(bpdyndnsd ${Boost_LIBRARIES} ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
0ab5653f
TJ
68
69# Install
70install(TARGETS bpdyndnsd DESTINATION bin)