summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/MocOptions/CMakeLists.txt
blob: f64b37b46f07269a870aa798a718aa46d7d5a3a0 (plain)
1
2
3
4
5
6
7
8
9
cmake_minimum_required(VERSION 3.10)
project(MocOptions)
include("../AutogenTest.cmake")

# 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})