add test_main to CMakeList

This commit is contained in:
ado 2021-01-21 01:36:34 +01:00
parent f2c157efc3
commit 2765cb467f

View File

@ -28,7 +28,7 @@ include(doctest)
enable_testing() enable_testing()
foreach(name IN ITEMS test_parser test_converter test_extractions) foreach(name IN ITEMS test_main test_parser test_converter test_extractions)
add_executable("${name}" "${name}.cpp") add_executable("${name}" "${name}.cpp")
target_link_libraries("${name}" PRIVATE ssp::ssp doctest::doctest) target_link_libraries("${name}" PRIVATE ssp::ssp doctest::doctest)
target_compile_definitions("${name}" PRIVATE CMAKE_GITHUB_CI) target_compile_definitions("${name}" PRIVATE CMAKE_GITHUB_CI)