Zhao Yuhang
2025-03-11 c00e986f38dbc4843d92cc76a385f826658c1e03
src/QWindowKitConfig.cmake.in
@@ -2,4 +2,17 @@
include(CMakeFindDependencyMacro)
include("${CMAKE_CURRENT_LIST_DIR}/substateTargets.cmake")
find_dependency(QT NAMES Qt6 Qt5 COMPONENTS Core Gui REQUIRED)
find_dependency(Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui REQUIRED)
if ("Widgets" IN_LIST QWindowKit_FIND_COMPONENTS)
    find_dependency(QT NAMES Qt6 Qt5 COMPONENTS Widgets REQUIRED)
    find_dependency(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets REQUIRED)
endif()
if ("Quick" IN_LIST QWindowKit_FIND_COMPONENTS)
    find_dependency(QT NAMES Qt6 Qt5 COMPONENTS Quick REQUIRED)
    find_dependency(Qt${QT_VERSION_MAJOR} COMPONENTS Quick REQUIRED)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/QWindowKitTargets.cmake")