blob: 2099e36068d74703d08f7e5f7f3799fa5a25a762 (
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(Qt5 5.1.0
COMPONENTS Core
OPTIONAL_COMPONENTS DoesNotExist
)
if (NOT Qt5_FOUND)
message(SEND_ERROR "Qt5 umbrella package not found!")
endif()
if (NOT Qt5Core_FOUND)
message(SEND_ERROR "Qt5Core package not found!")
endif()
if (Qt5DoesNotExist_FOUND)
message(SEND_ERROR "Non-existent package found!")
endif()
|