Autogen: Tests: Set AUTOMOC_MOC_OPTIONS in a simple test

This commit is contained in:
Sebastian Holtermann
2017-10-31 14:55:49 +01:00
parent 96d20a4de3
commit d3caf941e4

View File

@@ -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)