cmUseMangledMesaCommand.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef cmUseMangledMesaCommand_h
  2. #define cmUseMangledMesaCommand_h
  3. #include "cmStandardIncludes.h"
  4. #include "cmCommand.h"
  5. /** \class cmUseMangledMesaCommand
  6. * \brief Create Tcl Wrappers for VTK classes.
  7. *
  8. * cmUseMangledMesaCommand is used to define a CMake variable include
  9. * path location by specifying a file and list of directories.
  10. */
  11. class cmUseMangledMesaCommand : public cmCommand
  12. {
  13. public:
  14. /**
  15. * This is a virtual constructor for the command.
  16. */
  17. virtual cmCommand* Clone()
  18. {
  19. return new cmUseMangledMesaCommand;
  20. }
  21. /**
  22. * This is called when the command is first encountered in
  23. * the CMakeLists.txt file.
  24. */
  25. virtual bool InitialPass(std::vector<std::string> const& args);
  26. /**
  27. * The name of the command as specified in CMakeList.txt.
  28. */
  29. virtual const char* GetName() { return "USE_MANGLED_MESA";}
  30. /**
  31. * Succinct documentation.
  32. */
  33. virtual const char* GetTerseDocumentation()
  34. {
  35. return "Create copies of mesa headers for use in combination with system gl.";
  36. }
  37. /**
  38. * More documentation.
  39. */
  40. virtual const char* GetFullDocumentation()
  41. {
  42. return
  43. "USE_MANGLED_MESA(\"path to mesa includes, should contain gl_mangle.h\""
  44. " \"directory for output\" )";
  45. }
  46. protected:
  47. void CopyAndFullPathMesaHeader(const char* source,
  48. const char* outdir);
  49. private:
  50. std::vector<cmSourceFile> m_WrapClasses;
  51. std::vector<std::string> m_WrapHeaders;
  52. std::string m_LibraryName;
  53. std::string m_SourceList;
  54. std::vector<std::string> m_Commands;
  55. };
  56. #endif