Explicitly link pthread
[pingcheck] / test / CMakeLists.test_ipv4header.txt
CommitLineData
a72f06b6
GMF
1# compiler: creates the binaries
2add_executable(test_ipv4header
3 test_ipv4header.cpp
780b0bca 4 ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
d0c85dd8 5 ${CMAKE_SOURCE_DIR}/src/ip/ipheader.cpp
a72f06b6
GMF
6 ${CMAKE_SOURCE_DIR}/src/ip/ipv4header.cpp
7 ${CMAKE_SOURCE_DIR}/src/host/messagepayload.cpp
8)
9
10# linker: link the program against the libraries
11target_link_libraries(
12 test_ipv4header
13 ${I2NCOMMON_LIBRARIES}
14 ${Boost_LIBRARIES}
ed146945 15 pthread
a72f06b6
GMF
16)
17
18# cmake: invocation via "make test"
19add_test(test_ipv4header test_ipv4header)