Skip to content

Commit

Permalink
Tests are running now with ctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben1980 committed Mar 20, 2020
1 parent 56b05dd commit 44c46b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ include(CTest)
enable_testing()

add_subdirectory(app)
add_subdirectory(lib)
add_subdirectory(lib)
3 changes: 3 additions & 0 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
1 change: 1 addition & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 44c46b3

Please sign in to comment.