summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutomoc.h
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-11-01 13:33:11 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-11-01 13:33:11 (GMT)
commit52719a1d66db0bbdb17019bcb2ea5ab0a1258e22 (patch)
tree00916b0af679723b3fe59286139ed493ce8b286f /Source/cmQtAutomoc.h
parent1ecc55aa7b95a487996654e81d6493e7b72961c0 (diff)
downloadCMake-52719a1d66db0bbdb17019bcb2ea5ab0a1258e22.zip
CMake-52719a1d66db0bbdb17019bcb2ea5ab0a1258e22.tar.gz
CMake-52719a1d66db0bbdb17019bcb2ea5ab0a1258e22.tar.bz2
automoc: fix #12541, support moc options
This commit adds a new target property AUTOMOC_MOC_OPTIONS, which can be set to add extra options for the moc invocations done via automoc. This is equivalent to the OPTIONS parameter in the qt4_wrap_cpp() macro. Alex
Diffstat (limited to 'Source/cmQtAutomoc.h')
-rw-r--r--Source/cmQtAutomoc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmQtAutomoc.h b/Source/cmQtAutomoc.h
index c3550a4..db53b21 100644
--- a/Source/cmQtAutomoc.h
+++ b/Source/cmQtAutomoc.h
@@ -62,6 +62,7 @@ private:
std::string MocCompileDefinitionsStr;
std::string MocDefinitionsStr;
std::string MocIncludesStr;
+ std::string MocOptionsStr;
std::string ProjectBinaryDir;
std::string ProjectSourceDir;
std::string TargetName;
@@ -71,6 +72,7 @@ private:
std::string OutMocCppFilename;
std::list<std::string> MocIncludes;
std::list<std::string> MocDefinitions;
+ std::vector<std::string> MocOptions;
bool Verbose;
bool ColorOutput;