2020-09-14 07:06:58 +00:00
|
|
|
set(@INSTALL_CMAKE_NAMESPACE@_DEPENDENCIES_FOUND FALSE)
|
|
|
|
|
2020-09-14 07:37:03 +00:00
|
|
|
# note: _third_party_deps example: "ICU\\;FALSE\\;1.0\\;i18n uc data;ZLIB\\;FALSE\\;\\;"
|
2021-07-23 07:37:14 +00:00
|
|
|
set(__qt_third_party_deps "@third_party_deps@")
|
2020-08-03 14:28:16 +00:00
|
|
|
|
|
|
|
@third_party_extra@
|
|
|
|
|
2021-07-23 07:37:14 +00:00
|
|
|
foreach(__qt_target_dep ${__qt_third_party_deps})
|
|
|
|
list(GET __qt_target_dep 0 __qt_pkg)
|
|
|
|
list(GET __qt_target_dep 1 __qt_is_optional)
|
|
|
|
list(GET __qt_target_dep 2 __qt_version)
|
|
|
|
list(GET __qt_target_dep 3 __qt_components)
|
|
|
|
list(GET __qt_target_dep 4 __qt_optional_components)
|
|
|
|
set(__qt_find_package_args "${__qt_pkg}")
|
|
|
|
if(__qt_version)
|
|
|
|
list(APPEND __qt_find_package_args "${__qt_version}")
|
2020-08-03 14:28:16 +00:00
|
|
|
endif()
|
2021-07-23 07:37:14 +00:00
|
|
|
if(__qt_components)
|
|
|
|
string(REPLACE " " ";" __qt_components "${__qt_components}")
|
|
|
|
list(APPEND __qt_find_package_args COMPONENTS ${__qt_components})
|
2020-09-14 07:36:16 +00:00
|
|
|
endif()
|
2021-07-23 07:37:14 +00:00
|
|
|
if(__qt_optional_components)
|
|
|
|
string(REPLACE " " ";" __qt_optional_components "${__qt_optional_components}")
|
|
|
|
list(APPEND __qt_find_package_args OPTIONAL_COMPONENTS ${__qt_optional_components})
|
2021-06-17 10:04:16 +00:00
|
|
|
endif()
|
2020-08-03 14:28:16 +00:00
|
|
|
|
2020-09-14 07:06:58 +00:00
|
|
|
# Already build an error message, because find_dependency calls return() on failure.
|
2021-07-23 07:37:14 +00:00
|
|
|
set(__qt_message "\nPackage: ${__qt_pkg}")
|
|
|
|
if(__qt_version)
|
|
|
|
string(APPEND __qt_message "\nVersion: ${__qt_version}")
|
2020-09-14 07:06:58 +00:00
|
|
|
endif()
|
2021-07-23 07:37:14 +00:00
|
|
|
if(__qt_components)
|
|
|
|
string(APPEND __qt_message "\nComponents: ${__qt_components}")
|
2020-09-14 07:06:58 +00:00
|
|
|
endif()
|
2021-07-23 07:37:14 +00:00
|
|
|
if(__qt_optional_components)
|
|
|
|
string(APPEND __qt_message "\nComponents: ${__qt_optional_components}")
|
2021-06-17 10:04:16 +00:00
|
|
|
endif()
|
2021-07-23 07:37:14 +00:00
|
|
|
set(@INSTALL_CMAKE_NAMESPACE@_DEPENDENCY_NOT_FOUND_MESSAGE "${__qt_message}")
|
2020-09-14 07:06:58 +00:00
|
|
|
|
2021-07-23 07:37:14 +00:00
|
|
|
if(__qt_is_optional)
|
2020-09-14 07:37:03 +00:00
|
|
|
if(${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
|
2021-07-23 07:37:14 +00:00
|
|
|
list(APPEND __qt_find_package_args QUIET)
|
2020-09-14 07:37:03 +00:00
|
|
|
endif()
|
2021-07-23 07:37:14 +00:00
|
|
|
find_package(${__qt_find_package_args})
|
2020-09-14 07:37:03 +00:00
|
|
|
else()
|
2021-07-23 07:37:14 +00:00
|
|
|
find_dependency(${__qt_find_package_args})
|
2020-09-14 07:37:03 +00:00
|
|
|
endif()
|
2020-09-13 10:16:44 +00:00
|
|
|
endforeach()
|
2020-09-14 07:06:58 +00:00
|
|
|
|
|
|
|
set(@INSTALL_CMAKE_NAMESPACE@_DEPENDENCIES_FOUND TRUE)
|
|
|
|
unset(@INSTALL_CMAKE_NAMESPACE@_DEPENDENCY_NOT_FOUND_MESSAGE)
|