cmCTestEmptyBinaryDirectoryCommand.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmCTestEmptyBinaryDirectoryCommand_h
  11. #define cmCTestEmptyBinaryDirectoryCommand_h
  12. #include <cmConfigure.h>
  13. #include "cmCTestCommand.h"
  14. #include "cmTypeMacro.h"
  15. #include <string>
  16. #include <vector>
  17. class cmCommand;
  18. class cmExecutionStatus;
  19. /** \class cmCTestEmptyBinaryDirectory
  20. * \brief Run a ctest script
  21. *
  22. * cmLibrarysCommand defines a list of executable (i.e., test)
  23. * programs to create.
  24. */
  25. class cmCTestEmptyBinaryDirectoryCommand : public cmCTestCommand
  26. {
  27. public:
  28. cmCTestEmptyBinaryDirectoryCommand() {}
  29. /**
  30. * This is a virtual constructor for the command.
  31. */
  32. cmCommand* Clone() CM_OVERRIDE
  33. {
  34. cmCTestEmptyBinaryDirectoryCommand* ni =
  35. new cmCTestEmptyBinaryDirectoryCommand;
  36. ni->CTest = this->CTest;
  37. ni->CTestScriptHandler = this->CTestScriptHandler;
  38. return ni;
  39. }
  40. /**
  41. * This is called when the command is first encountered in
  42. * the CMakeLists.txt file.
  43. */
  44. bool InitialPass(std::vector<std::string> const& args,
  45. cmExecutionStatus& status) CM_OVERRIDE;
  46. /**
  47. * The name of the command as specified in CMakeList.txt.
  48. */
  49. std::string GetName() const CM_OVERRIDE
  50. {
  51. return "ctest_empty_binary_directory";
  52. }
  53. cmTypeMacro(cmCTestEmptyBinaryDirectoryCommand, cmCTestCommand);
  54. };
  55. #endif