13 lines
527 B
CMake
13 lines
527 B
CMake
# Unit tests for EchoionProtocol. Uses a tiny header-only harness (check.hpp),
|
|
# no external test framework required.
|
|
|
|
file(GLOB ECHOIONPROTOCOL_TEST_SOURCES CONFIGURE_DEPENDS
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/test_*.cpp")
|
|
|
|
add_executable(echoion_protocol_tests ${ECHOIONPROTOCOL_TEST_SOURCES})
|
|
target_link_libraries(echoion_protocol_tests PRIVATE EchoionProtocol)
|
|
target_include_directories(echoion_protocol_tests PRIVATE
|
|
"${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
add_test(NAME echoion_protocol_tests COMMAND echoion_protocol_tests)
|