diff --git a/header_only_library/CMakeLists.txt b/header_only_library/CMakeLists.txt index 49f697d..8b1cbf3 100644 --- a/header_only_library/CMakeLists.txt +++ b/header_only_library/CMakeLists.txt @@ -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) diff --git a/header_only_library_with_vcpkg/CMakeLists.txt b/header_only_library_with_vcpkg/CMakeLists.txt index 553af88..09ddfbe 100644 --- a/header_only_library_with_vcpkg/CMakeLists.txt +++ b/header_only_library_with_vcpkg/CMakeLists.txt @@ -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) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index de2b518..dd60005 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -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) diff --git a/library_with_vcpkg/CMakeLists.txt b/library_with_vcpkg/CMakeLists.txt index 80b54c6..c74fcf0 100644 --- a/library_with_vcpkg/CMakeLists.txt +++ b/library_with_vcpkg/CMakeLists.txt @@ -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)