summaryrefslogtreecommitdiffstats
path: root/Source/cmQTWrapCPPCommand.h
diff options
context:
space:
mode:
authorIan Scott <ian.m.scott@stud.man.ac.uk>2001-10-15 18:19:53 (GMT)
committerIan Scott <ian.m.scott@stud.man.ac.uk>2001-10-15 18:19:53 (GMT)
commit3a316a6e0a8611b1f5998b3a654eebf1dd1cb4e5 (patch)
treea704e9eb664dd40549d71103f399d1fc9ff76629 /Source/cmQTWrapCPPCommand.h
parentb6158ac39c69c634ec0987a6ee9f2adde5d47c93 (diff)
downloadCMake-3a316a6e0a8611b1f5998b3a654eebf1dd1cb4e5.zip
CMake-3a316a6e0a8611b1f5998b3a654eebf1dd1cb4e5.tar.gz
CMake-3a316a6e0a8611b1f5998b3a654eebf1dd1cb4e5.tar.bz2
added a QT_WRAP_CPP command
Diffstat (limited to 'Source/cmQTWrapCPPCommand.h')
-rw-r--r--Source/cmQTWrapCPPCommand.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/Source/cmQTWrapCPPCommand.h b/Source/cmQTWrapCPPCommand.h
new file mode 100644
index 0000000..684eec6
--- /dev/null
+++ b/Source/cmQTWrapCPPCommand.h
@@ -0,0 +1,78 @@
+#ifndef cmQTWrapCPPCommand_h
+#define cmQTWrapCPPCommand_h
+
+#include "cmStandardIncludes.h"
+#include "cmCommand.h"
+
+/** \class cmQTWrapCPPCommand
+ * \brief Create moc file rules for QT classes
+ *
+ * cmQTWrapCPPCommand is used to create wrappers for QT classes into normal C++
+ */
+class cmQTWrapCPPCommand : public cmCommand
+{
+public:
+ /**
+ * This is a virtual constructor for the command.
+ */
+ virtual cmCommand* Clone()
+ {
+ return new cmQTWrapCPPCommand;
+ }
+
+ /**
+ * This is called when the command is first encountered in
+ * the CMakeLists.txt file.
+ */
+ virtual bool InitialPass(std::vector<std::string> const& args);
+
+ /**
+ * This is called at the end after all the information
+ * specified by the command is accumulated. Most commands do
+ * not implement this method. At this point, reading and
+ * writing to the cache can be done.
+ */
+ virtual void FinalPass();
+
+ /**
+ * The name of the command as specified in CMakeList.txt.
+ */
+ virtual const char* GetName() { return "QT_WRAP_CPP";}
+
+ /**
+ * Succinct documentation.
+ */
+ virtual const char* GetTerseDocumentation()
+ {
+ return "Create QT Wrappers.";
+ }
+
+ /**
+ * More documentation.
+ */
+ virtual const char* GetFullDocumentation()
+ {
+ return
+ "QT_WRAP_CPP(resultingLibraryName DestName SourceLists ...)\n"
+ "Produce moc files for all the .h file listed in the SourceLists.\n"
+ "The moc files will be added to the library using the DestName\n"
+ "source list.";
+ }
+
+private:
+ /**
+ * List of produced files.
+ */
+ std::vector<cmSourceFile> m_WrapClasses;
+ /**
+ * List of header files that pprovide the source for m_WrapClasses.
+ */
+ std::vector<std::string> m_WrapHeaders;
+ std::vector<std::string> m_OriginalNames;
+ std::string m_LibraryName;
+ std::string m_SourceList;
+};
+
+
+
+#endif