1 # compiler: creates the binaries
2 add_executable(test_dns
3 ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
4 ${CMAKE_SOURCE_DIR}/src/host/pinger.cpp
5 ${CMAKE_SOURCE_DIR}/src/dns/hostaddress.cpp
6 ${CMAKE_SOURCE_DIR}/src/dns/timetolive.cpp
7 ${CMAKE_SOURCE_DIR}/src/dns/dnsmaster.cpp
8 ${CMAKE_SOURCE_DIR}/src/dns/dnscache.cpp
9 ${CMAKE_SOURCE_DIR}/src/dns/resolverbase.cpp
10 ${CMAKE_SOURCE_DIR}/src/dns/dnsresolver.cpp
14 set(Boost_USE_STATIC_LIBS OFF)
15 set(Boost_USE_MULTITHREADED OFF)
16 set(Boost_USE_STATIC_RUNTIME OFF)
17 find_package(Boost 1.44 COMPONENTS serialization date_time REQUIRED)
18 include_directories(${Boost_INCLUDE_DIRS})
19 link_directories(${Boost_LIBRARY_DIRS})
21 # package: boost-net-dns
22 include_directories(${CMAKE_SOURCE_DIR}/lib/boost-net-dns)
24 # linker: link the program against the libraries
25 target_link_libraries(
27 ${I2NCOMMON_LIBRARIES}
31 # cmake: invocation via "make test"
32 add_test(test_dns test_dns)