Debian Codegraph @

tests/auto/cmake/test_umbrella_config/components_not_found/CMakeLists.txt

raw
1
2 # The module finds its dependencies
3 find_package(Qt5
4 COMPONENTS Core DoesNotExist
5 )
6
7 if (Qt5_FOUND)
8 message(SEND_ERROR "Qt5 umbrella package found, though it should not be!")
9 endif()
10
11 if (NOT Qt5Core_FOUND)
12 message(SEND_ERROR "Qt5Core package not found!")
13 endif()
14
15 if (Qt5DoesNotExist_FOUND)
16 message(SEND_ERROR "Non-existent package found!")
17 endif()