Fix 'occurred' typo
[bpdyndnsd] / src / CMakeLists.txt
index 45cd5e6..322372f 100644 (file)
@@ -1,5 +1,5 @@
 # Find Boost
-find_package(Boost COMPONENTS program_options filesystem regex serialization REQUIRED)
+find_package(Boost COMPONENTS program_options filesystem regex serialization system REQUIRED)
 
 # Find CURL
 find_package(CURL)
@@ -8,11 +8,14 @@ find_package(CURL)
 find_package(OpenSSL)
 
 # Includes
-include_directories( ${CMAKE_CURRENT_SOURCE_DIR}
+include_directories(    ${CMAKE_CURRENT_BINARY_DIR}
+                        ${CMAKE_CURRENT_SOURCE_DIR}
                                    ${CURL_INCLUDES}
                                    ${OPENSSL_INCLUDES}
                                 )
 
+configure_file ("${PROJECT_SOURCE_DIR}/src/version_info.h.in" "${PROJECT_BINARY_DIR}/src/version_info.h")
+
 # C++ sources
 set(cpp_sources
         config.cpp
@@ -28,6 +31,7 @@ set(cpp_sources
         service_dyns.cpp
         service_easydns.cpp
         service_gnudip.cpp
+        service_gnudip_fullhostname.cpp
         serviceholder.cpp
         service_ods.cpp
         service_tzo.cpp
@@ -39,32 +43,34 @@ set(cpp_sources
 
 # C++ headers
 set(cpp_headers
-        config.h
-        httphelper.h
-        ip_addr_helper.h
-        ip_service.h
-        logger.h
-        net_helper.h
-        serializeservicecontainer.h
-        service_dhs.h
-        service_dyndns.h
-        service_dyns.h
-        service_easydns.h
-        service_gnudip.h
-        service.h
-        serviceholder.h
-        service_ods.h
-        service_tzo.h
-        service_zoneedit.h
-        tcp_service.h
-        updater.h
-        util.h
+        config.hpp
+        httphelper.hpp
+        ip_addr_helper.hpp
+        ip_service.hpp
+        logger.hpp
+        net_helper.hpp
+        serializeservicecontainer.hpp
+        service_dhs.hpp
+        service_dyndns.hpp
+        service_dyns.hpp
+        service_easydns.hpp
+        service_gnudip.hpp
+        service_gnudip_fullhostname.hpp
+        service.hpp
+        serviceholder.hpp
+        service_ods.hpp
+        service_tzo.hpp
+        service_zoneedit.hpp
+        tcp_service.hpp
+        updater.hpp
+        util.hpp
+        version_info.h
     )
 
 add_executable(bpdyndnsd ${cpp_sources} ${cpp_headers})
 
 # Dependencies
-target_link_libraries(bpdyndnsd ${Boost_LIBRARIES} ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
+target_link_libraries(bpdyndnsd ${Boost_LIBRARIES} ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES} pthread)
 
 # Install
 install(TARGETS bpdyndnsd DESTINATION bin)