CMake/Tests/QtAutogen/MocOptions/CMakeLists.txt
Sebastian Holtermann 2ef640819f Autogen: Tests: Differentiate between Qt core and Qt gui tests
Some AUTOGEN tests require the Qt core libraries only and
some require the Qt gui libraries to function.
This replaces the AutogenTest.cmake script with two specific
AutogenCoreTest.cmake and AutogenGuiTest.cmake scripts that
are included on demand.
2018-11-28 12:51:19 +01:00

10 lines
369 B
CMake

cmake_minimum_required(VERSION 3.10)
project(MocOptions)
include("../AutogenCoreTest.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})