cmCTestBuildCommand.h 1.2 KB

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