Commit | Line | Data |
---|---|---|
6f994c17 TJ |
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 | ||
0ab5653f | 10 | # Includes |
6f994c17 TJ |
11 | include_directories( ${CMAKE_CURRENT_SOURCE_DIR} |
12 | ${CURL_INCLUDES} | |
13 | ${OPENSSL_INCLUDES} | |
14 | ) | |
0ab5653f | 15 | |
3abfd340 TJ |
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 | ||
6f994c17 | 40 | # C++ headers |
3abfd340 TJ |
41 | set(cpp_headers |
42 | config.h | |
43 | httphelper.h | |
44 | ip_addr_helper.h | |
45 | ip_service.h | |
46 | logger.h | |
47 | net_helper.h | |
48 | serializeservicecontainer.h | |
49 | service_dhs.h | |
50 | service_dyndns.h | |
51 | service_dyns.h | |
52 | service_easydns.h | |
53 | service_gnudip.h | |
54 | service.h | |
55 | serviceholder.h | |
56 | service_ods.h | |
57 | service_tzo.h | |
58 | service_zoneedit.h | |
59 | tcp_service.h | |
60 | updater.h | |
61 | util.h | |
62 | ) | |
63 | ||
64 | add_executable(bpdyndnsd ${cpp_sources} ${cpp_headers}) | |
0ab5653f TJ |
65 | |
66 | # Dependencies | |
6f994c17 | 67 | target_link_libraries(bpdyndnsd ${Boost_LIBRARIES} ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES}) |
0ab5653f TJ |
68 | |
69 | # Install | |
70 | install(TARGETS bpdyndnsd DESTINATION bin) |