summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_umbrella_config/components_found/CMakeLists.txt
blob: 999aaccdd240d835a22f3754b0e12deafd5cc03f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

# The module finds its dependencies
find_package(Qt6 6.0.0
             COMPONENTS Core
    OPTIONAL_COMPONENTS DoesNotExist
)

if (NOT Qt6_FOUND)
    message(SEND_ERROR "Qt6 umbrella package not found!")
endif()

if (NOT Qt6Core_FOUND)
    message(SEND_ERROR "Qt6Core package not found!")
endif()

if (Qt6DoesNotExist_FOUND)
    message(SEND_ERROR "Non-existent package found!")
endif()