diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-10-31 13:55:49 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-10-31 13:55:49 (GMT) |
commit | d3caf941e4940bb133088bea4c790a90e749f8b8 (patch) | |
tree | 99ade5044a418a40121b42c01bf2951afb84df38 /Tests | |
parent | 96d20a4de3420fca0e25a67c24e6f7eaead4420d (diff) | |
download | CMake-d3caf941e4940bb133088bea4c790a90e749f8b8.zip CMake-d3caf941e4940bb133088bea4c790a90e749f8b8.tar.gz CMake-d3caf941e4940bb133088bea4c790a90e749f8b8.tar.bz2 |
Autogen: Tests: Set AUTOMOC_MOC_OPTIONS in a simple test
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/QtAutogen/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/QtAutogen/CMakeLists.txt b/Tests/QtAutogen/CMakeLists.txt index b9d8e46..32c2950 100644 --- a/Tests/QtAutogen/CMakeLists.txt +++ b/Tests/QtAutogen/CMakeLists.txt @@ -65,6 +65,11 @@ add_executable(mocOnly mocOnlySource/main.cpp mocOnlySource/StyleA.cpp mocOnlySo set_property(TARGET mocOnly PROPERTY AUTOMOC ON) target_link_libraries(mocOnly ${QT_LIBRARIES}) +add_executable(mocOnlyOpts mocOnlySource/main.cpp mocOnlySource/StyleA.cpp mocOnlySource/StyleB.cpp) +set_property(TARGET mocOnlyOpts PROPERTY AUTOMOC ON) +set_property(TARGET mocOnlyOpts PROPERTY AUTOMOC_MOC_OPTIONS "-nw") +target_link_libraries(mocOnlyOpts ${QT_LIBRARIES}) + # -- Test # UIC only if(ALLOW_WRAP_CPP) |