|
8 | 8 | set(NOT_SUBPROJECT OFF)
|
9 | 9 | endif()
|
10 | 10 |
|
| 11 | +set_property(GLOBAL PROPERTY USE_FOLDERS ON) |
| 12 | + |
11 | 13 | option(CATCH_INSTALL_DOCS "Install documentation alongside library" ON)
|
12 | 14 | option(CATCH_INSTALL_EXTRAS "Install extras (CMake scripts, debugger helpers) alongside library" ON)
|
13 | 15 | option(CATCH_DEVELOPMENT_BUILD "Build tests, enable warnings, enable Werror, etc" OFF)
|
@@ -41,7 +43,6 @@ project(Catch2
|
41 | 43 | DESCRIPTION "A modern, C++-native, unit test framework."
|
42 | 44 | )
|
43 | 45 |
|
44 |
| - |
45 | 46 | # Provide path for scripts. We first add path to the scripts we don't use,
|
46 | 47 | # but projects including us might, and set the path up to parent scope.
|
47 | 48 | # Then we also add path that we use to configure the project, but is of
|
@@ -86,18 +87,22 @@ if (BUILD_TESTING AND CATCH_BUILD_TESTING AND NOT_SUBPROJECT)
|
86 | 87 | if (NOT PYTHONINTERP_FOUND)
|
87 | 88 | message(FATAL_ERROR "Python not found, but required for tests")
|
88 | 89 | endif()
|
| 90 | + set(CMAKE_FOLDER "tests") |
89 | 91 | add_subdirectory(tests)
|
90 | 92 | endif()
|
91 | 93 |
|
92 | 94 | if(CATCH_BUILD_EXAMPLES)
|
| 95 | + set(CMAKE_FOLDER "Examples") |
93 | 96 | add_subdirectory(examples)
|
94 | 97 | endif()
|
95 | 98 |
|
96 | 99 | if(CATCH_BUILD_EXTRA_TESTS)
|
| 100 | + set(CMAKE_FOLDER "tests/ExtraTests") |
97 | 101 | add_subdirectory(tests/ExtraTests)
|
98 | 102 | endif()
|
99 | 103 |
|
100 | 104 | if(CATCH_BUILD_FUZZERS)
|
| 105 | + set(CMAKE_FOLDER "fuzzing") |
101 | 106 | add_subdirectory(fuzzing)
|
102 | 107 | endif()
|
103 | 108 |
|
|
0 commit comments