mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
Autogen: Tests: Set AUTOMOC_MOC_OPTIONS in a simple test
This commit is contained in:
@@ -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