mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
a742088472
The minimum CMake version for Qt6 is 3.16, so all the calls to cmake_minimum_required() are updated here to enforce that minimum. This will avoid any CMake version-related warnings from Qt. Avoid hard-coding Qt5 where the tests could now be using Qt5 or Qt6. Fixes: #22188
10 lines
369 B
CMake
10 lines
369 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
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})
|