summaryrefslogtreecommitdiffstats
path: root/Modules/AutomocInfo.cmake.in
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 /Modules/AutomocInfo.cmake.in
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 'Modules/AutomocInfo.cmake.in')
-rw-r--r--Modules/AutomocInfo.cmake.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/AutomocInfo.cmake.in b/Modules/AutomocInfo.cmake.in
index 2dc3aa2..9c71952 100644
--- a/Modules/AutomocInfo.cmake.in
+++ b/Modules/AutomocInfo.cmake.in
@@ -3,6 +3,7 @@ set(AM_HEADERS "@_moc_headers@" )
set(AM_MOC_COMPILE_DEFINITIONS "@_moc_compile_defs@")
set(AM_MOC_DEFINITIONS "@_moc_defs@")
set(AM_MOC_INCLUDES "@_moc_incs@")
+set(AM_MOC_OPTIONS "@_moc_options@")
set(AM_CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE "@CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE@")
set(AM_CMAKE_BINARY_DIR "@CMAKE_BINARY_DIR@/")
set(AM_CMAKE_SOURCE_DIR "@CMAKE_SOURCE_DIR@/")