cmCTestRunScriptCommand.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 cmCTestRunScriptCommand_h
  4. #define cmCTestRunScriptCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmCTestCommand.h"
  7. #include <string>
  8. #include <vector>
  9. class cmCommand;
  10. class cmExecutionStatus;
  11. /** \class cmCTestRunScript
  12. * \brief Run a ctest script
  13. *
  14. * cmLibrarysCommand defines a list of executable (i.e., test)
  15. * programs to create.
  16. */
  17. class cmCTestRunScriptCommand : public cmCTestCommand
  18. {
  19. public:
  20. cmCTestRunScriptCommand() {}
  21. /**
  22. * This is a virtual constructor for the command.
  23. */
  24. cmCommand* Clone() override
  25. {
  26. cmCTestRunScriptCommand* ni = new cmCTestRunScriptCommand;
  27. ni->CTest = this->CTest;
  28. ni->CTestScriptHandler = this->CTestScriptHandler;
  29. return ni;
  30. }
  31. /**
  32. * This is called when the command is first encountered in
  33. * the CMakeLists.txt file.
  34. */
  35. bool InitialPass(std::vector<std::string> const& args,
  36. cmExecutionStatus& status) override;
  37. };
  38. #endif