cmCTestReadCustomFilesCommand.h 1.2 KB

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