From 3314ced7bc3d7f890535aaf8a4e118dbd45dc2ef Mon Sep 17 00:00:00 2001 From: Sebastian Hiebl Date: Sun, 5 Nov 2023 18:12:23 +0100 Subject: [PATCH] add tests to ctest --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8619610..cc231a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,7 +38,9 @@ target_link_libraries(jess ncurses systemd) if(BUILD_TESTING) find_package(doctest REQUIRED) + include(doctest) # for doctest_discover_tests add_executable(tests src/SdCursor.hpp test/SdCursor_test.cpp) target_include_directories(tests PUBLIC src) target_link_libraries(tests PRIVATE doctest::doctest) + doctest_discover_tests(tests) endif ()