2020-09-14 07:06:58 +00:00
|
|
|
set(@target@_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_@target@_third_party_deps "@third_party_deps@")
|
2019-05-03 14:03:15 +00:00
|
|
|
|
2021-07-23 07:37:14 +00:00
|
|
|
foreach(__qt_@target@_target_dep ${__qt_@target@_third_party_deps})
|
|
|
|
list(GET __qt_@target@_target_dep 0 __qt_@target@_pkg)
|
|
|
|
list(GET __qt_@target@_target_dep 1 __qt_@target@_is_optional)
|
|
|
|
list(GET __qt_@target@_target_dep 2 __qt_@target@_version)
|
|
|
|
list(GET __qt_@target@_target_dep 3 __qt_@target@_components)
|
|
|
|
list(GET __qt_@target@_target_dep 4 __qt_@target@_optional_components)
|
|
|
|
set(__qt_@target@_find_package_args "${__qt_@target@_pkg}")
|
|
|
|
if(__qt_@target@_version)
|
|
|
|
list(APPEND __qt_@target@_find_package_args "${__qt_@target@_version}")
|
2019-05-03 14:03:15 +00:00
|
|
|
endif()
|
2021-07-23 07:37:14 +00:00
|
|
|
if(__qt_@target@_components)
|
|
|
|
string(REPLACE " " ";" __qt_@target@_components "${__qt_@target@_components}")
|
|
|
|
list(APPEND __qt_@target@_find_package_args COMPONENTS ${__qt_@target@_components})
|
2019-05-03 14:03:15 +00:00
|
|
|
endif()
|
2021-07-23 07:37:14 +00:00
|
|
|
if(__qt_@target@_optional_components)
|
|
|
|
string(REPLACE " " ";" __qt_@target@_optional_components "${__qt_@target@_optional_components}")
|
|
|
|
list(APPEND __qt_@target@_find_package_args OPTIONAL_COMPONENTS ${__qt_@target@_optional_components})
|
2021-06-17 10:04:16 +00:00
|
|
|
endif()
|
2020-09-14 07:36:16 +00:00
|
|
|
|
2021-07-23 07:37:14 +00:00
|
|
|
if(__qt_@target@_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_@target@_find_package_args QUIET)
|
2020-09-14 07:37:03 +00:00
|
|
|
endif()
|
2021-07-23 07:37:14 +00:00
|
|
|
find_package(${__qt_@target@_find_package_args})
|
2020-09-14 07:37:03 +00:00
|
|
|
else()
|
2021-07-23 07:37:14 +00:00
|
|
|
find_dependency(${__qt_@target@_find_package_args})
|
2020-09-14 07:37:03 +00:00
|
|
|
endif()
|
2019-05-03 14:03:15 +00:00
|
|
|
endforeach()
|
|
|
|
|
2020-09-25 18:02:56 +00:00
|
|
|
set(__qt_use_no_default_path_for_qt_packages "NO_DEFAULT_PATH")
|
|
|
|
if(QT_DISABLE_NO_DEFAULT_PATH_IN_QT_PACKAGES)
|
|
|
|
set(__qt_use_no_default_path_for_qt_packages "")
|
|
|
|
endif()
|
|
|
|
|
2019-06-14 10:59:07 +00:00
|
|
|
# note: target_deps example: "Qt6Core\;5.12.0;Qt6Gui\;5.12.0"
|
2021-07-23 07:37:14 +00:00
|
|
|
set(__qt_@target@_target_deps "@target_deps@")
|
|
|
|
set(__qt_@target@_find_dependency_paths "@find_dependency_paths@")
|
|
|
|
_qt_internal_find_dependencies(__qt_@target@_target_deps __qt_@target@_find_dependency_paths)
|
2020-09-14 07:06:58 +00:00
|
|
|
|
|
|
|
set(@target@_FOUND TRUE)
|