# Find Boost find_package(Boost COMPONENTS program_options filesystem regex serialization REQUIRED) # Find CURL find_package(CURL) # Find OpenSSL (libcrypto) find_package(OpenSSL) # Includes include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CURL_INCLUDES} ${OPENSSL_INCLUDES} ) # C++ sources set(cpp_sources config.cpp httphelper.cpp ip_addr_helper.cpp logger.cpp main.cpp net_helper.cpp serializeservicecontainer.cpp service.cpp service_dhs.cpp service_dyndns.cpp service_dyns.cpp service_easydns.cpp service_gnudip.cpp serviceholder.cpp service_ods.cpp service_tzo.cpp service_zoneedit.cpp tcp_service.cpp updater.cpp util.cpp ) # 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 ) add_executable(bpdyndnsd ${cpp_sources} ${cpp_headers}) # Dependencies target_link_libraries(bpdyndnsd ${Boost_LIBRARIES} ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES}) # Install install(TARGETS bpdyndnsd DESTINATION bin)