summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-08-07 10:02:46 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-08-07 10:02:46 (GMT)
commita65011baf109fd0afe759cf3d9e7b6ab7013a805 (patch)
tree0ebb84ca3ab98de7beaa2ff8a0cf30689510942a
parent2c14a176bbbc979a4db5b1e8d81d390ff4580d46 (diff)
downloadCMake-a65011baf109fd0afe759cf3d9e7b6ab7013a805.zip
CMake-a65011baf109fd0afe759cf3d9e7b6ab7013a805.tar.gz
CMake-a65011baf109fd0afe759cf3d9e7b6ab7013a805.tar.bz2
Start work on automoc: add empty cmQtAutomoc class
Alex
-rw-r--r--Source/CMakeLists.txt2
-rw-r--r--Source/cmQtAutomoc.cxx10
-rw-r--r--Source/cmQtAutomoc.h11
-rw-r--r--Source/cmake.cxx7
4 files changed, 30 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 1c942ba..96b3ea0 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -228,6 +228,8 @@ SET(SRCS
cmPropertyDefinitionMap.h
cmPropertyMap.cxx
cmPropertyMap.h
+ cmQtAutomoc.cxx
+ cmQtAutomoc.h
cmScriptGenerator.h
cmScriptGenerator.cxx
cmSourceFile.cxx
diff --git a/Source/cmQtAutomoc.cxx b/Source/cmQtAutomoc.cxx
new file mode 100644
index 0000000..efbfc38
--- /dev/null
+++ b/Source/cmQtAutomoc.cxx
@@ -0,0 +1,10 @@
+#include "cmQtAutomoc.h"
+
+cmQtAutomoc::cmQtAutomoc()
+{
+}
+
+
+bool cmQtAutomoc::Run(const char* targetDirectory)
+{
+}
diff --git a/Source/cmQtAutomoc.h b/Source/cmQtAutomoc.h
new file mode 100644
index 0000000..657b208
--- /dev/null
+++ b/Source/cmQtAutomoc.h
@@ -0,0 +1,11 @@
+#ifndef cmQtAutomoc_h
+#define cmQtAutomoc_h
+
+class cmQtAutomoc
+{
+public:
+ cmQtAutomoc();
+ bool Run(const char* targetDirectory);
+};
+
+#endif
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 51cc9d4..47520df 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -20,6 +20,7 @@
#include "cmCommand.h"
#include "cmFileTimeComparison.h"
#include "cmGeneratedFileStream.h"
+#include "cmQtAutomoc.h"
#include "cmSourceFile.h"
#include "cmVersion.h"
#include "cmTest.h"
@@ -1574,6 +1575,12 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
}
#endif
+ else if (args[1] == "cmake_automoc")
+ {
+ cmQtAutomoc automoc;
+ automoc.Run("target directory");
+ }
+
// Tar files
else if (args[1] == "tar" && args.size() > 3)
{