cmCTestConfigureCommand.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 cmCTestConfigureCommand_h
  4. #define cmCTestConfigureCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmCTestHandlerCommand.h"
  7. #include <string>
  8. class cmCTestGenericHandler;
  9. class cmCommand;
  10. /** \class cmCTestConfigure
  11. * \brief Run a ctest script
  12. *
  13. * cmCTestConfigureCommand defineds the command to configures the project.
  14. */
  15. class cmCTestConfigureCommand : public cmCTestHandlerCommand
  16. {
  17. public:
  18. cmCTestConfigureCommand();
  19. /**
  20. * This is a virtual constructor for the command.
  21. */
  22. cmCommand* Clone() override
  23. {
  24. cmCTestConfigureCommand* ni = new cmCTestConfigureCommand;
  25. ni->CTest = this->CTest;
  26. ni->CTestScriptHandler = this->CTestScriptHandler;
  27. return ni;
  28. }
  29. /**
  30. * The name of the command as specified in CMakeList.txt.
  31. */
  32. std::string GetName() const override { return "ctest_configure"; }
  33. protected:
  34. cmCTestGenericHandler* InitializeHandler() override;
  35. enum
  36. {
  37. ctc_FIRST = ct_LAST,
  38. ctc_OPTIONS,
  39. ctc_LAST
  40. };
  41. };
  42. #endif