cmCTestConfigureCommand.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 <string>
  7. #include <utility>
  8. #include <cm/memory>
  9. #include "cmCTestHandlerCommand.h"
  10. #include "cmCommand.h"
  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. /**
  21. * This is a virtual constructor for the command.
  22. */
  23. std::unique_ptr<cmCommand> Clone() override
  24. {
  25. auto ni = cm::make_unique<cmCTestConfigureCommand>();
  26. ni->CTest = this->CTest;
  27. ni->CTestScriptHandler = this->CTestScriptHandler;
  28. return std::unique_ptr<cmCommand>(std::move(ni));
  29. }
  30. /**
  31. * The name of the command as specified in CMakeList.txt.
  32. */
  33. std::string GetName() const override { return "ctest_configure"; }
  34. protected:
  35. void BindArguments() override;
  36. cmCTestGenericHandler* InitializeHandler() override;
  37. std::string Options;
  38. };
  39. #endif