diff --git a/CMakeLists.txt b/CMakeLists.txt index abf22a3..6c47d2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,4 +12,4 @@ include(CTest) enable_testing() add_subdirectory(app) -add_subdirectory(lib) +add_subdirectory(lib) \ No newline at end of file diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 4d7ac3e..5cbe765 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -7,3 +7,6 @@ add_executable(${PROJECT_NAME} ${SOURCE}) find_package(fmt CONFIG REQUIRED) find_package(doctest CONFIG REQUIRED) target_link_libraries(${PROJECT_NAME} PRIVATE fmt::fmt fmt::fmt-header-only doctest::doctest LIBNAME) + +include(doctest) +doctest_discover_tests(${PROJECT_NAME}) \ No newline at end of file diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 9d24af5..f0eaad7 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -7,3 +7,4 @@ add_library(${PROJECT_NAME} ${SOURCE}) find_package(fmt CONFIG REQUIRED) find_package(doctest CONFIG REQUIRED) target_link_libraries(${PROJECT_NAME} PRIVATE fmt::fmt fmt::fmt-header-only doctest::doctest) +