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 /Modules | |
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 'Modules')
-rw-r--r-- | Modules/AutomocInfo.cmake.in | 1 |
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@/") |