diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-11-01 13:33:11 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-11-01 13:33:11 (GMT) |
commit | 52719a1d66db0bbdb17019bcb2ea5ab0a1258e22 (patch) | |
tree | 00916b0af679723b3fe59286139ed493ce8b286f /Source/cmQtAutomoc.h | |
parent | 1ecc55aa7b95a487996654e81d6493e7b72961c0 (diff) | |
download | CMake-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.h | 2 |
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; |