X-Git-Url: https://git.ralfj.de/dyn-nsupdate.git/blobdiff_plain/88af7a47fc7194a1bd4c699f1da55e86f4576dec..ecc6d7d76571926b6011a3396b5b8d9458d713fc:/CMakeLists.txt?ds=sidebyside diff --git a/CMakeLists.txt b/CMakeLists.txt index 3865aad..58f11b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,14 @@ cmake_minimum_required(VERSION 2.6) project(Dyn-NSupdate) -FIND_PACKAGE( Boost 1.40 REQUIRED ) +FIND_PACKAGE( Boost 1.40 COMPONENTS regex REQUIRED ) INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} ) -set(CMAKE_CXX_FLAGS "-Wall -Wextra ${CMAKE_CXX_FLAGS}") +set(DYNNSUPDATE_CONFIG_FILE "/some/config/file" 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 )