cmCTestReadCustomFilesCommand.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <string>
  6. #include <utility>
  7. #include <vector>
  8. #include <cm/memory>
  9. #include "cmCTestCommand.h"
  10. #include "cmCommand.h"
  11. class cmExecutionStatus;
  12. /** \class cmCTestReadCustomFiles
  13. * \brief Run a ctest script
  14. *
  15. * cmLibrarysCommand defines a list of executable (i.e., test)
  16. * programs to create.
  17. */
  18. class cmCTestReadCustomFilesCommand : public cmCTestCommand
  19. {
  20. public:
  21. cmCTestReadCustomFilesCommand() {}
  22. /**
  23. * This is a virtual constructor for the command.
  24. */
  25. std::unique_ptr<cmCommand> Clone() override
  26. {
  27. auto ni = cm::make_unique<cmCTestReadCustomFilesCommand>();
  28. ni->CTest = this->CTest;
  29. return std::unique_ptr<cmCommand>(std::move(ni));
  30. }
  31. /**
  32. * This is called when the command is first encountered in
  33. * the CMakeLists.txt file.
  34. */
  35. bool InitialPass(std::vector<std::string> const& args,
  36. cmExecutionStatus& status) override;
  37. };