summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/RunCMake/Qt6DirConfiguration/project.cmake
blob: b90465e0967690cd7a311253cbdfb25f55a0fff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This should successfully find the Qt6::BundledZLIB package in a -qt-zlib
# configuration.
find_package(Qt6 COMPONENTS Core)

# Depending on which module features were used when building Qt, look up each of the respective
# packages, those might also look for bundled libraries.
if(HAS_GUI)
    find_package(Qt6 COMPONENTS Gui)
endif()
if(HAS_DBUS)
    find_package(Qt6 COMPONENTS DBus)
endif()
if(HAS_WIDGETS)
    find_package(Qt6 COMPONENTS Widgets)
endif()
if(HAS_OPENGL)
    find_package(Qt6 COMPONENTS OpenGL)
endif()