1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
5 #include "cmConfigure.h" // IWYU pragma: keep
10 class cmExecutionStatus;
13 * \brief Enable testing for this directory and below.
15 * Produce the output testfile. This produces a file in the build directory
16 * called CMakeTestfile with a syntax similar to CMakeLists.txt. It contains
17 * the subdirs() and add_test() commands from the source CMakeLists.txt
18 * file with CMake variables expanded. Only the subdirs and tests
19 * within the valid control structures are replicated in Testfile
20 * (i.e. subdirs() and add_test() commands within IF() commands that are
21 * not entered by CMake are not replicated in Testfile).
22 * Note that CTest expects to find this file in the build directory root;
23 * therefore, this command should be in the source directory root too.
25 bool cmEnableTestingCommand(std::vector<std::string> const&,