# compiler: creates the binaries add_executable(test_icmpv6header test_icmpv6header.cpp ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp ${CMAKE_SOURCE_DIR}/src/ip/ipheader.cpp ${CMAKE_SOURCE_DIR}/src/ip/ipv4header.cpp ${CMAKE_SOURCE_DIR}/src/ip/ipv6header.cpp ${CMAKE_SOURCE_DIR}/src/icmp/icmpdata.cpp ${CMAKE_SOURCE_DIR}/src/icmp/icmpdata_pingfailreply.cpp ${CMAKE_SOURCE_DIR}/src/icmp/icmpechodata.cpp ${CMAKE_SOURCE_DIR}/src/icmp/icmpdestinationunreachabledata.cpp ${CMAKE_SOURCE_DIR}/src/icmp/icmpheader.cpp ${CMAKE_SOURCE_DIR}/src/host/messagepayload.cpp ) # linker: link the program against the libraries target_link_libraries( test_icmpv6header ${I2NCOMMON_LIBRARIES} Boost::unit_test_framework Boost::system Boost::program_options Boost::date_time Boost::serialization pthread ) # cmake: invocation via "make test" add_test(test_icmpv6header test_icmpv6header)