X-Git-Url: https://git.ralfj.de/dyn-nsupdate.git/blobdiff_plain/e743a95875c0c204473c3d078312b638e667a055..9600b17be11c899d4c5d0be19eb96b3d67f1da39:/nsupd-wrapper/CMakeLists.txt diff --git a/nsupd-wrapper/CMakeLists.txt b/nsupd-wrapper/CMakeLists.txt new file mode 100644 index 0000000..de9fb11 --- /dev/null +++ b/nsupd-wrapper/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 2.6) +project(Dyn-NSupdate) + +FIND_PACKAGE( Boost 1.40 COMPONENTS regex program_options REQUIRED ) +INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} ) + +set(DYNNSUPDATE_CONFIG_FILE "/var/lib/bind/dyn-nsupdate.conf" CACHE FILEPATH "Choose the file dyn-nsupdate reads its configuration from (for security reasons, this is hard-coded in the binary)") + +set(CMAKE_CXX_FLAGS "-Wall -Wextra ${CMAKE_CXX_FLAGS} -std=c++11") + +add_definitions("-DCONFIG_FILE=\"${DYNNSUPDATE_CONFIG_FILE}\"") + +ADD_EXECUTABLE( dyn-nsupdate dyn-nsupdate.cpp ) + +TARGET_LINK_LIBRARIES( dyn-nsupdate ${Boost_LIBRARIES} )