cmCTestEmptyBinaryDirectoryCommand.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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>
  6. #include "cmCTestCommand.h"
  7. #include "cmTypeMacro.h"
  8. #include <string>
  9. #include <vector>
  10. class cmCommand;
  11. class cmExecutionStatus;
  12. /** \class cmCTestEmptyBinaryDirectory
  13. * \brief Run a ctest script
  14. *
  15. * cmLibrarysCommand defines a list of executable (i.e., test)
  16. * programs to create.
  17. */
  18. class cmCTestEmptyBinaryDirectoryCommand : public cmCTestCommand
  19. {
  20. public:
  21. cmCTestEmptyBinaryDirectoryCommand() {}
  22. /**
  23. * This is a virtual constructor for the command.
  24. */
  25. cmCommand* Clone() CM_OVERRIDE
  26. {
  27. cmCTestEmptyBinaryDirectoryCommand* ni =
  28. new cmCTestEmptyBinaryDirectoryCommand;
  29. ni->CTest = this->CTest;
  30. ni->CTestScriptHandler = this->CTestScriptHandler;
  31. return 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) CM_OVERRIDE;
  39. /**
  40. * The name of the command as specified in CMakeList.txt.
  41. */
  42. std::string GetName() const CM_OVERRIDE
  43. {
  44. return "ctest_empty_binary_directory";
  45. }
  46. cmTypeMacro(cmCTestEmptyBinaryDirectoryCommand, cmCTestCommand);
  47. };
  48. #endif