cmIncludeExternalMSProjectCommand.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmIncludeExternalMSProjectCommand_h
  11. #define cmIncludeExternalMSProjectCommand_h
  12. #include "cmCommand.h"
  13. /** \class cmIncludeExternalMSProjectCommand
  14. * \brief Specify an external MS project file for inclusion in the workspace.
  15. *
  16. * cmIncludeExternalMSProjectCommand is used to specify an externally
  17. * generated Microsoft project file for inclusion in the default workspace
  18. * generated by CMake.
  19. */
  20. class cmIncludeExternalMSProjectCommand : public cmCommand
  21. {
  22. public:
  23. /**
  24. * This is a virtual constructor for the command.
  25. */
  26. virtual cmCommand* Clone()
  27. {
  28. return new cmIncludeExternalMSProjectCommand;
  29. }
  30. /**
  31. * This is called when the command is first encountered in
  32. * the CMakeLists.txt file.
  33. */
  34. virtual bool InitialPass(std::vector<std::string> const& args,
  35. cmExecutionStatus &status);
  36. /**
  37. * The name of the command as specified in CMakeList.txt.
  38. */
  39. virtual const char* GetName() {return "include_external_msproject";}
  40. /**
  41. * Succinct documentation.
  42. */
  43. virtual const char* GetTerseDocumentation()
  44. {
  45. return "Include an external Microsoft project file in a workspace.";
  46. }
  47. /**
  48. * More documentation.
  49. */
  50. virtual const char* GetFullDocumentation()
  51. {
  52. return
  53. " include_external_msproject(projectname location\n"
  54. " dep1 dep2 ...)\n"
  55. "Includes an external Microsoft project in the generated workspace "
  56. "file. Currently does nothing on UNIX. This will create a "
  57. "target named INCLUDE_EXTERNAL_MSPROJECT_[projectname]. This can "
  58. "be used in the add_dependencies command to make things depend "
  59. "on the external project.";
  60. }
  61. cmTypeMacro(cmIncludeExternalMSProjectCommand, cmCommand);
  62. };
  63. #endif