resolve cyclic dependency with zstd
[platform/upstream/cmake.git] / Source / cmEnableTestingCommand.h
1 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2    file Copyright.txt or https://cmake.org/licensing for details.  */
3 #pragma once
4
5 #include "cmConfigure.h" // IWYU pragma: keep
6
7 #include <string>
8 #include <vector>
9
10 class cmExecutionStatus;
11
12 /**
13  * \brief Enable testing for this directory and below.
14  *
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.
24  */
25 bool cmEnableTestingCommand(std::vector<std::string> const&,
26                             cmExecutionStatus&);