cmIncludeExternalMSProjectCommand.h 1.3 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. #ifndef cmIncludeExternalMSProjectCommand_h
  4. #define cmIncludeExternalMSProjectCommand_h
  5. #include <cmConfigure.h>
  6. #include <string>
  7. #include <vector>
  8. #include "cmCommand.h"
  9. #include "cmTypeMacro.h"
  10. class cmExecutionStatus;
  11. /** \class cmIncludeExternalMSProjectCommand
  12. * \brief Specify an external MS project file for inclusion in the workspace.
  13. *
  14. * cmIncludeExternalMSProjectCommand is used to specify an externally
  15. * generated Microsoft project file for inclusion in the default workspace
  16. * generated by CMake.
  17. */
  18. class cmIncludeExternalMSProjectCommand : public cmCommand
  19. {
  20. public:
  21. /**
  22. * This is a virtual constructor for the command.
  23. */
  24. cmCommand* Clone() CM_OVERRIDE
  25. {
  26. return new cmIncludeExternalMSProjectCommand;
  27. }
  28. /**
  29. * This is called when the command is first encountered in
  30. * the CMakeLists.txt file.
  31. */
  32. bool InitialPass(std::vector<std::string> const& args,
  33. cmExecutionStatus& status) CM_OVERRIDE;
  34. /**
  35. * The name of the command as specified in CMakeList.txt.
  36. */
  37. std::string GetName() const CM_OVERRIDE
  38. {
  39. return "include_external_msproject";
  40. }
  41. cmTypeMacro(cmIncludeExternalMSProjectCommand, cmCommand);
  42. };
  43. #endif