cmEnableTestingCommand.h 1.1 KB

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