mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
Autogen: Tests: Set AUTOMOC_MOC_OPTIONS in a simple test
This commit is contained in:
1 parent
96d20a4de3
commit
d3caf941e4
1 file changed
+5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user