summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKMakeInstantiatorCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-03-01 20:49:10 (GMT)
committerBrad King <brad.king@kitware.com>2002-03-01 20:49:10 (GMT)
commitac74d513827b7575319e37911888c1d6816ddd8a (patch)
tree40753bf0eed56af7a82d7601e5772c548fe2e80d /Source/cmVTKMakeInstantiatorCommand.h
parent3da299a796f6905662cbee7361e9a59c3c59c7b5 (diff)
downloadCMake-ac74d513827b7575319e37911888c1d6816ddd8a.zip
CMake-ac74d513827b7575319e37911888c1d6816ddd8a.tar.gz
CMake-ac74d513827b7575319e37911888c1d6816ddd8a.tar.bz2
ENH: Added support for including extra files in generated header to get access to export macros of derived projects.
Diffstat (limited to 'Source/cmVTKMakeInstantiatorCommand.h')
-rw-r--r--Source/cmVTKMakeInstantiatorCommand.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmVTKMakeInstantiatorCommand.h b/Source/cmVTKMakeInstantiatorCommand.h
index ca83954..ee738ce 100644
--- a/Source/cmVTKMakeInstantiatorCommand.h
+++ b/Source/cmVTKMakeInstantiatorCommand.h
@@ -55,7 +55,8 @@ public:
"VTK_MAKE_INSTANTIATOR(className outSourceList\n"
" src-list1 [src-list2 ..]\n"
" EXPORT_MACRO exportMacro\n"
- " [HEADER_LOCATION dir] [GROUP_SIZE groupSize])\n"
+ " [HEADER_LOCATION dir] [GROUP_SIZE groupSize]\n"
+ " [INCLUDES [file1 file2 ..]])\n"
"Generates a new class with the given name and adds its files to the\n"
"given outSourceList. It registers the classes from the other given\n"
"source lists with vtkInstantiator when it is loaded. The output\n"
@@ -71,7 +72,10 @@ public:
"The GROUP_SIZE option must be followed by a positive integer.\n"
"As an implementation detail, the registered creation functions may\n"
"be split up into multiple files. The groupSize option specifies\n"
- "the number of classes per file. Its default is 10.";
+ "the number of classes per file. Its default is 10. The INCLUDES\n"
+ "option can be followed by a list of zero or more files. These files\n"
+ "will be #included by the generated instantiator header, and can be\n"
+ "used to gain access to the specified exportMacro in the C++ code.";
}
cmTypeMacro(cmVTKMakeInstantiatorCommand, cmCommand);
@@ -79,6 +83,7 @@ public:
protected:
std::string m_ClassName;
std::string m_ExportMacro;
+ std::vector<cmStdString> m_Includes;
std::vector<cmStdString> m_Classes;
std::string GenerateCreationFileName(unsigned int group);