mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-06-16 03:34:56 +02:00
tests/CMakeLists.txt: use doctest_discover_tests() macro to add all doctest test cases with a separate CTest test.
This commit is contained in:
parent
12e779c8cf
commit
afc199e739
1 changed files with 3 additions and 4 deletions
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/doctest.cmake)
|
||||
|
||||
set(TEST_SRC
|
||||
main.cpp
|
||||
|
||||
|
|
@ -30,10 +32,7 @@ add_executable(doctest ${TEST_SRC})
|
|||
target_link_libraries(doctest PRIVATE ${LIB_NAME})
|
||||
target_include_directories(doctest PRIVATE ${CMAKE_CURRENT_LIST_DIR}/include)
|
||||
|
||||
add_test(
|
||||
NAME doctest
|
||||
COMMAND $<TARGET_FILE:doctest> -ni -fc
|
||||
)
|
||||
doctest_discover_tests(doctest)
|
||||
|
||||
if (WITH_BENCHMARK)
|
||||
add_subdirectory( benchmark )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue