| 1 | # compiler: creates the binaries |
| 2 | add_executable(test_pingprotocol |
| 3 | test_pingprotocol.cpp |
| 4 | ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp |
| 5 | ${CMAKE_SOURCE_DIR}/src/host/pingprotocol.cpp |
| 6 | ) |
| 7 | |
| 8 | # linker: link the program against the libraries |
| 9 | target_link_libraries( |
| 10 | test_pingprotocol |
| 11 | ${I2NCOMMON_LIBRARIES} |
| 12 | Boost::unit_test_framework |
| 13 | Boost::system |
| 14 | Boost::program_options |
| 15 | Boost::date_time |
| 16 | Boost::serialization |
| 17 | pthread |
| 18 | ) |
| 19 | |
| 20 | # cmake: invocation via "make test" |
| 21 | add_test(test_pingprotocol test_pingprotocol) |