You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.2 KiB

  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Insight Consortium. All rights reserved.
  8. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm 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 cmUseMangledMesaCommand_h
  14. #define cmUseMangledMesaCommand_h
  15. #include "cmStandardIncludes.h"
  16. #include "cmCommand.h"
  17. /** \class cmUseMangledMesaCommand
  18. * \brief Create Tcl Wrappers for VTK classes.
  19. *
  20. * cmUseMangledMesaCommand is used to define a CMake variable include
  21. * path location by specifying a file and list of directories.
  22. */
  23. class cmUseMangledMesaCommand : public cmCommand
  24. {
  25. public:
  26. /**
  27. * This is a virtual constructor for the command.
  28. */
  29. virtual cmCommand* Clone()
  30. {
  31. return new cmUseMangledMesaCommand;
  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 "USE_MANGLED_MESA";}
  42. /**
  43. * Succinct documentation.
  44. */
  45. virtual const char* GetTerseDocumentation()
  46. {
  47. return "Create copies of mesa headers for use in combination with system gl.";
  48. }
  49. /**
  50. * More documentation.
  51. */
  52. virtual const char* GetFullDocumentation()
  53. {
  54. return
  55. "USE_MANGLED_MESA(PATH_TO_MESA OUTPUT_DIRECTORY)\n"
  56. "The path to mesa includes, should contain gl_mangle.h. ";
  57. }
  58. protected:
  59. void CopyAndFullPathMesaHeader(const char* source,
  60. const char* outdir);
  61. private:
  62. std::vector<cmSourceFile> m_WrapClasses;
  63. std::vector<std::string> m_WrapHeaders;
  64. std::string m_LibraryName;
  65. std::string m_SourceList;
  66. std::vector<std::string> m_Commands;
  67. };
  68. #endif