cmCTestBuildCommand.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 <vector>
  7. #include <cm/memory>
  8. #include "cmCTestHandlerCommand.h"
  9. class cmCommand;
  10. class cmCTestBuildHandler;
  11. class cmCTestGenericHandler;
  12. class cmExecutionStatus;
  13. class cmGlobalGenerator;
  14. /** \class cmCTestBuild
  15. * \brief Run a ctest script
  16. *
  17. * cmCTestBuildCommand defineds the command to build the project.
  18. */
  19. class cmCTestBuildCommand : public cmCTestHandlerCommand
  20. {
  21. public:
  22. ~cmCTestBuildCommand() override;
  23. /**
  24. * This is a virtual constructor for the command.
  25. */
  26. std::unique_ptr<cmCommand> Clone() override;
  27. /**
  28. * The name of the command as specified in CMakeList.txt.
  29. */
  30. std::string GetName() const override { return "ctest_build"; }
  31. bool InitialPass(std::vector<std::string> const& args,
  32. cmExecutionStatus& status) override;
  33. std::unique_ptr<cmGlobalGenerator> GlobalGenerator;
  34. protected:
  35. cmCTestBuildHandler* Handler;
  36. void BindArguments() override;
  37. cmCTestGenericHandler* InitializeHandler() override;
  38. std::string NumberErrors;
  39. std::string NumberWarnings;
  40. std::string Target;
  41. std::string Configuration;
  42. std::string Flags;
  43. std::string ProjectName;
  44. std::string ParallelLevel;
  45. };