cmIncludeExternalMSProjectCommand.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmIncludeExternalMSProjectCommand_h
  14. #define cmIncludeExternalMSProjectCommand_h
  15. #include "cmCommand.h"
  16. /** \class cmIncludeExternalMSProjectCommand
  17. * \brief Specify an external MS project file for inclusion in the workspace.
  18. *
  19. * cmIncludeExternalMSProjectCommand is used to specify an externally generated
  20. * Microsoft project file for inclusion in the default workspace generated by
  21. * CMake.
  22. */
  23. class cmIncludeExternalMSProjectCommand : public cmCommand
  24. {
  25. public:
  26. /**
  27. * This is a virtual constructor for the command.
  28. */
  29. virtual cmCommand* Clone()
  30. {
  31. return new cmIncludeExternalMSProjectCommand;
  32. }
  33. /**
  34. * This is called when the command is first encountered in
  35. * the CMakeLists.txt file.
  36. */
  37. virtual bool InitialPass(std::vector<std::string> const& args);
  38. /**
  39. * The name of the command as specified in CMakeList.txt.
  40. */
  41. virtual const char* GetName() {return "INCLUDE_EXTERNAL_MSPROJECT";}
  42. /**
  43. * Succinct documentation.
  44. */
  45. virtual const char* GetTerseDocumentation()
  46. {
  47. return "Include an external Microsoft project file in a workspace.";
  48. }
  49. /**
  50. * More documentation.
  51. */
  52. virtual const char* GetFullDocumentation()
  53. {
  54. return
  55. " INCLUDE_EXTERNAL_MSPROJECT(projectname location\n"
  56. " dep1 dep2 ...)\n"
  57. "Includes an external Microsoft project in the generated workspace "
  58. "file. Currently does nothing on UNIX.";
  59. }
  60. cmTypeMacro(cmIncludeExternalMSProjectCommand, cmCommand);
  61. };
  62. #endif