ENH: mark some vars as advanced (and resort the list)
[cmake.git] / Source / cmUseMangledMesaCommand.h
blob4c994e701578c595622e32a106531864de78a313
1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmUseMangledMesaCommand.h,v $
5 Language: C++
6 Date: $Date: 2002-03-29 19:20:27 $
7 Version: $Revision: 1.5 $
9 Copyright (c) 2002 Insight Consortium. All rights reserved.
10 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmUseMangledMesaCommand_h
18 #define cmUseMangledMesaCommand_h
20 #include "cmStandardIncludes.h"
21 #include "cmCommand.h"
23 /** \class cmUseMangledMesaCommand
24 * \brief Create Tcl Wrappers for VTK classes.
26 * cmUseMangledMesaCommand is used to define a CMake variable include
27 * path location by specifying a file and list of directories.
29 class cmUseMangledMesaCommand : public cmCommand
31 public:
32 /**
33 * This is a virtual constructor for the command.
35 virtual cmCommand* Clone()
37 return new cmUseMangledMesaCommand;
40 /**
41 * This is called when the command is first encountered in
42 * the CMakeLists.txt file.
44 virtual bool InitialPass(std::vector<std::string> const& args);
46 /**
47 * The name of the command as specified in CMakeList.txt.
49 virtual const char* GetName() { return "USE_MANGLED_MESA";}
51 /**
52 * Succinct documentation.
54 virtual const char* GetTerseDocumentation()
56 return "Create copies of mesa headers for use in combination with system gl.";
59 /**
60 * More documentation.
62 virtual const char* GetFullDocumentation()
64 return
65 "USE_MANGLED_MESA(PATH_TO_MESA OUTPUT_DIRECTORY)\n"
66 "The path to mesa includes, should contain gl_mangle.h. ";
69 protected:
70 void CopyAndFullPathMesaHeader(const char* source,
71 const char* outdir);
72 private:
73 std::vector<cmSourceFile> m_WrapClasses;
74 std::vector<std::string> m_WrapHeaders;
75 std::string m_LibraryName;
76 std::string m_SourceList;
77 std::vector<std::string> m_Commands;
82 #endif