mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 21:58:50 -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
21 lines
524 B
CMake
21 lines
524 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(StaticLibraryCycle)
|
|
include("../AutogenCoreTest.cmake")
|
|
|
|
# Test AUTOMOC on cyclic static libraries
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
# Cyclic static libraries
|
|
add_library(slc_a STATIC a.cpp)
|
|
target_link_libraries(slc_a ${QT_LIBRARIES} slc_b)
|
|
|
|
add_library(slc_b STATIC b.cpp)
|
|
target_link_libraries(slc_b ${QT_LIBRARIES} slc_c)
|
|
|
|
add_library(slc_c STATIC c.cpp)
|
|
target_link_libraries(slc_c ${QT_LIBRARIES} slc_a)
|
|
|
|
add_executable(slc main.cpp)
|
|
target_link_libraries(slc ${QT_LIBRARIES} slc_a)
|