update tests for github ci

This commit is contained in:
ado
2021-01-21 01:29:07 +01:00
parent 4f7cf73002
commit e49ccede35
5 changed files with 20 additions and 5 deletions

View File

@@ -31,6 +31,6 @@ enable_testing()
foreach(name IN ITEMS test_parser test_converter test_extractions)
add_executable("${name}" "${name}.cpp")
target_link_libraries("${name}" PRIVATE ssp::ssp doctest::doctest)
target_compile_definitions("${name}" PRIVATE DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN)
target_compile_definitions("${name}" PRIVATE CMAKE_GITHUB_CI)
doctest_discover_tests("${name}")
endforeach()