cmCTestEmptyBinaryDirectoryCommand.h 1.2 KB

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