cmProjectCommand.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 cmProjectCommand_h
  4. #define cmProjectCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <string>
  7. #include <vector>
  8. #include "cmCommand.h"
  9. class cmExecutionStatus;
  10. /** \class cmProjectCommand
  11. * \brief Specify the name for this build project.
  12. *
  13. * cmProjectCommand is used to specify a name for this build project.
  14. * It is defined once per set of CMakeList.txt files (including
  15. * all subdirectories). Currently it just sets the name of the workspace
  16. * file for Microsoft Visual C++
  17. */
  18. class cmProjectCommand : public cmCommand
  19. {
  20. public:
  21. /**
  22. * This is a virtual constructor for the command.
  23. */
  24. cmCommand* Clone() override { return new cmProjectCommand; }
  25. /**
  26. * This is called when the command is first encountered in
  27. * the CMakeLists.txt file.
  28. */
  29. bool InitialPass(std::vector<std::string> const& args,
  30. cmExecutionStatus& status) override;
  31. };
  32. #endif