Remove almost redundant update code
[bpdyndnsd] / src / CMakeLists.txt
1 # Find Boost
2 find_package(Boost COMPONENTS program_options filesystem regex serialization REQUIRED)
3
4 # Find CURL
5 find_package(CURL)
6
7 # Find OpenSSL (libcrypto)
8 find_package(OpenSSL)
9
10 # Includes
11 include_directories( ${CMAKE_CURRENT_SOURCE_DIR}
12                                    ${CURL_INCLUDES}
13                                    ${OPENSSL_INCLUDES}
14                                 )
15
16 # C++ sources
17 set(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
40 # C++ headers
41 set(cpp_headers
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
62     )
63
64 add_executable(bpdyndnsd ${cpp_sources} ${cpp_headers})
65
66 # Dependencies
67 target_link_libraries(bpdyndnsd ${Boost_LIBRARIES} ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
68
69 # Install
70 install(TARGETS bpdyndnsd DESTINATION bin)