cmCTestConfigureCommand.h 1.2 KB

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