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