2021-11-20 13:41:27 +01:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2018-04-23 21:13:27 +02:00
|
|
|
project(MocOptions)
|
2019-11-11 23:01:05 +01:00
|
|
|
include("../AutogenCoreTest.cmake")
|
2018-04-23 21:13:27 +02:00
|
|
|
|
|
|
|
# Test extra options passed to moc via AUTOMOC_MOC_OPTIONS
|
|
|
|
add_executable(mocOptions Object.cpp main.cpp)
|
|
|
|
set_property(TARGET mocOptions PROPERTY AUTOMOC ON)
|
|
|
|
set_property(TARGET mocOptions PROPERTY AUTOMOC_MOC_OPTIONS "-nw")
|
|
|
|
target_link_libraries(mocOptions ${QT_LIBRARIES})
|