# compiler: creates the binaries add_executable(test_ipv6header test_ipv6header.cpp ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp ${CMAKE_SOURCE_DIR}/src/ip/ipheader.cpp ${CMAKE_SOURCE_DIR}/src/ip/ipv6header.cpp ${CMAKE_SOURCE_DIR}/src/host/messagepayload.cpp ) # linker: link the program against the libraries target_link_libraries( test_ipv6header ${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_ipv6header test_ipv6header)