cmCTestReadCustomFilesCommand.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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" // IWYU pragma: keep
  6. #include "cmCTestCommand.h"
  7. #include "cmCommand.h"
  8. #include <string>
  9. #include <utility>
  10. #include <vector>
  11. #include "cm_memory.hxx"
  12. class cmExecutionStatus;
  13. /** \class cmCTestReadCustomFiles
  14. * \brief Run a ctest script
  15. *
  16. * cmLibrarysCommand defines a list of executable (i.e., test)
  17. * programs to create.
  18. */
  19. class cmCTestReadCustomFilesCommand : public cmCTestCommand
  20. {
  21. public:
  22. cmCTestReadCustomFilesCommand() {}
  23. /**
  24. * This is a virtual constructor for the command.
  25. */
  26. std::unique_ptr<cmCommand> Clone() override
  27. {
  28. auto ni = cm::make_unique<cmCTestReadCustomFilesCommand>();
  29. ni->CTest = this->CTest;
  30. return std::unique_ptr<cmCommand>(std::move(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