@PACKAGE_INIT@

include(CMakeFindDependencyMacro)
find_dependency(Qt@QT_MAJOR_VERSION@Gui @REQUIRED_QT_VERSION@)

if(NOT @KWINDOWSYSTEM_NO_WIDGETS@)
    find_dependency(Qt@QT_MAJOR_VERSION@Widgets @REQUIRED_QT_VERSION@)
endif()

if(@X11_FOUND@)
    find_dependency(X11)
endif()

if(NOT @BUILD_SHARED_LIBS@)
    if(@WIN32@)
        find_dependency(Qt5WinExtras @REQUIRED_QT_VERSION@)
    endif()

    if(@X11_FOUND@)
        if (NOT TARGET Qt6::Gui)
            find_dependency(Qt5X11Extras @REQUIRED_QT_VERSION@)
        else()
            # qtx11extras_p.h is in Qt6Gui, which is already a dependency
        endif()
        find_dependency(XCB)
    endif()
endif()

include("${CMAKE_CURRENT_LIST_DIR}/KF5WindowSystemTargets.cmake")
@PACKAGE_INCLUDE_QCHTARGETS@
