cmCTestConfigureCommand.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. #pragma once
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <string>
  6. #include <utility>
  7. #include <cm/memory>
  8. #include "cmCTestHandlerCommand.h"
  9. #include "cmCommand.h"
  10. class cmCTestGenericHandler;
  11. /** \class cmCTestConfigure
  12. * \brief Run a ctest script
  13. *
  14. * cmCTestConfigureCommand defineds the command to configures the project.
  15. */
  16. class cmCTestConfigureCommand : public cmCTestHandlerCommand
  17. {
  18. public:
  19. /**
  20. * This is a virtual constructor for the command.
  21. */
  22. std::unique_ptr<cmCommand> Clone() override
  23. {
  24. auto ni = cm::make_unique<cmCTestConfigureCommand>();
  25. ni->CTest = this->CTest;
  26. ni->CTestScriptHandler = this->CTestScriptHandler;
  27. return std::unique_ptr<cmCommand>(std::move(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. void BindArguments() override;
  35. cmCTestGenericHandler* InitializeHandler() override;
  36. std::string Options;
  37. };