From a65011baf109fd0afe759cf3d9e7b6ab7013a805 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Sun, 7 Aug 2011 12:02:46 +0200 Subject: [PATCH] Start work on automoc: add empty cmQtAutomoc class Alex --- Source/CMakeLists.txt | 2 ++ Source/cmQtAutomoc.cxx | 10 ++++++++++ Source/cmQtAutomoc.h | 11 +++++++++++ Source/cmake.cxx | 7 +++++++ 4 files changed, 30 insertions(+) create mode 100644 Source/cmQtAutomoc.cxx create mode 100644 Source/cmQtAutomoc.h diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 1c942ba4b..96b3ea06a 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 000000000..efbfc3832 --- /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 000000000..657b20805 --- /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 51cc9d4dd..47520dff7 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& args) } #endif + else if (args[1] == "cmake_automoc") + { + cmQtAutomoc automoc; + automoc.Run("target directory"); + } + // Tar files else if (args[1] == "tar" && args.size() > 3) {