Explicitly link pthread
[pingcheck] / test / CMakeLists.test_icmpv4header.txt
1 # compiler: creates the binaries
2 add_executable(test_icmpv4header
3     test_icmpv4header.cpp
4     ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
5     ${CMAKE_SOURCE_DIR}/src/ip/ipheader.cpp
6     ${CMAKE_SOURCE_DIR}/src/ip/ipv4header.cpp
7     ${CMAKE_SOURCE_DIR}/src/ip/ipv6header.cpp
8     ${CMAKE_SOURCE_DIR}/src/icmp/icmpdata.cpp
9     ${CMAKE_SOURCE_DIR}/src/icmp/icmpdata_pingfailreply.cpp
10     ${CMAKE_SOURCE_DIR}/src/icmp/icmpechodata.cpp
11     ${CMAKE_SOURCE_DIR}/src/icmp/icmpdestinationunreachabledata.cpp
12     ${CMAKE_SOURCE_DIR}/src/icmp/icmpheader.cpp
13     ${CMAKE_SOURCE_DIR}/src/host/messagepayload.cpp
14 )
15
16 # linker: link the program against the libraries
17 target_link_libraries(
18     test_icmpv4header
19     ${I2NCOMMON_LIBRARIES}
20     ${Boost_LIBRARIES}
21     pthread
22 )
23
24 # cmake: invocation via "make test"
25 add_test(test_icmpv4header test_icmpv4header)