Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion header_only_library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ if (BUILD_TESTING)
VERSION 2.5.2
OPTIONS "DOCTEST_WITH_TESTS OFF")
include (${DOCTEST_CMAKE_HELPER})
set_property (TARGET doctest_with_main PROPERTY FOLDER "tests")
else ()
find_package (doctest CONFIG REQUIRED)
include (doctest)
endif()
set_property (TARGET doctest_with_main PROPERTY FOLDER "tests")

file (GLOB_RECURSE PROJECT_TESTS CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/tests/*")
foreach (TEST_PATH IN LISTS PROJECT_TESTS)
Expand Down
1 change: 0 additions & 1 deletion header_only_library_with_vcpkg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ endif()
if (BUILD_TESTING AND PROJECT_IS_TOP_LEVEL)
find_package(doctest CONFIG REQUIRED)
include (doctest)
set_property(TARGET doctest_with_main PROPERTY FOLDER "tests")

file (GLOB_RECURSE PROJECT_TESTS CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/tests/*")
foreach (TEST_PATH IN LISTS PROJECT_TESTS)
Expand Down
2 changes: 1 addition & 1 deletion library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ if (BUILD_TESTING)
VERSION 2.5.2
OPTIONS "DOCTEST_WITH_TESTS OFF")
include (${DOCTEST_CMAKE_HELPER})
set_property (TARGET doctest_with_main PROPERTY FOLDER "tests")
else ()
find_package (doctest CONFIG REQUIRED)
include (doctest)
endif()
set_property (TARGET doctest_with_main PROPERTY FOLDER "tests")

file (GLOB_RECURSE PROJECT_TESTS CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/tests/*")
foreach (TEST_PATH IN LISTS PROJECT_TESTS)
Expand Down
1 change: 0 additions & 1 deletion library_with_vcpkg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ endif()
if (BUILD_TESTING AND PROJECT_IS_TOP_LEVEL)
find_package(doctest CONFIG REQUIRED)
include (doctest)
set_property(TARGET doctest_with_main PROPERTY FOLDER "tests")

file (GLOB_RECURSE PROJECT_TESTS CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/tests/*")
foreach (TEST_PATH IN LISTS PROJECT_TESTS)
Expand Down
Loading