try to get nicer exception messages when we fail fetching the checkip URL
[dyn-nsupdate.git] / nsupd-wrapper / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6) 
2 project(Dyn-NSupdate)
3
4 FIND_PACKAGE( Boost 1.40 COMPONENTS regex program_options REQUIRED )
5 INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
6
7 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)")
8
9 set(CMAKE_CXX_FLAGS "-Wall -Wextra ${CMAKE_CXX_FLAGS} -std=c++11")
10
11 add_definitions("-DCONFIG_FILE=\"${DYNNSUPDATE_CONFIG_FILE}\"")
12
13 ADD_EXECUTABLE( dyn-nsupdate dyn-nsupdate.cpp )
14
15 TARGET_LINK_LIBRARIES( dyn-nsupdate ${Boost_LIBRARIES} )