Update pingcheck to work with cmake 3.28
[pingcheck] / test / CMakeLists.test_icmpv6header.txt
CommitLineData
a72f06b6
GMF
1# compiler: creates the binaries
2add_executable(test_icmpv6header
3 test_icmpv6header.cpp
780b0bca 4 ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
81c26517
CH
5 ${CMAKE_SOURCE_DIR}/src/ip/ipheader.cpp
6 ${CMAKE_SOURCE_DIR}/src/ip/ipv4header.cpp
7 ${CMAKE_SOURCE_DIR}/src/ip/ipv6header.cpp
39d326f2 8 ${CMAKE_SOURCE_DIR}/src/icmp/icmpdata.cpp
15023b99 9 ${CMAKE_SOURCE_DIR}/src/icmp/icmpdata_pingfailreply.cpp
0ba8adc0
CH
10 ${CMAKE_SOURCE_DIR}/src/icmp/icmpechodata.cpp
11 ${CMAKE_SOURCE_DIR}/src/icmp/icmpdestinationunreachabledata.cpp
39d326f2 12 ${CMAKE_SOURCE_DIR}/src/icmp/icmpheader.cpp
a72f06b6
GMF
13 ${CMAKE_SOURCE_DIR}/src/host/messagepayload.cpp
14)
15
16# linker: link the program against the libraries
17target_link_libraries(
18 test_icmpv6header
19 ${I2NCOMMON_LIBRARIES}
60dcabeb
L
20 Boost::unit_test_framework
21 Boost::system
22 Boost::program_options
23 Boost::date_time
24 Boost::serialization
ed146945 25 pthread
a72f06b6
GMF
26)
27
28# cmake: invocation via "make test"
29add_test(test_icmpv6header test_icmpv6header)