cmCTestConfigureCommand.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 cmCTestConfigureCommand_h
  11. #define cmCTestConfigureCommand_h
  12. #include <cmConfigure.h>
  13. #include "cmCTestHandlerCommand.h"
  14. #include "cmTypeMacro.h"
  15. #include <string>
  16. class cmCTestGenericHandler;
  17. class cmCommand;
  18. /** \class cmCTestConfigure
  19. * \brief Run a ctest script
  20. *
  21. * cmCTestConfigureCommand defineds the command to configures the project.
  22. */
  23. class cmCTestConfigureCommand : public cmCTestHandlerCommand
  24. {
  25. public:
  26. cmCTestConfigureCommand();
  27. /**
  28. * This is a virtual constructor for the command.
  29. */
  30. cmCommand* Clone() CM_OVERRIDE
  31. {
  32. cmCTestConfigureCommand* ni = new cmCTestConfigureCommand;
  33. ni->CTest = this->CTest;
  34. ni->CTestScriptHandler = this->CTestScriptHandler;
  35. return ni;
  36. }
  37. /**
  38. * The name of the command as specified in CMakeList.txt.
  39. */
  40. std::string GetName() const CM_OVERRIDE { return "ctest_configure"; }
  41. cmTypeMacro(cmCTestConfigureCommand, cmCTestHandlerCommand);
  42. protected:
  43. cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
  44. enum
  45. {
  46. ctc_FIRST = ct_LAST,
  47. ctc_OPTIONS,
  48. ctc_LAST
  49. };
  50. };
  51. #endif