Skip to content

Commit

Permalink
add tests to ctest
Browse files Browse the repository at this point in the history
  • Loading branch information
bastidest committed Nov 5, 2023
1 parent 52a9f13 commit 3314ced
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

0 comments on commit 3314ced

Please sign in to comment.