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\\;\\;"
|
2019-05-03 14:03:15 +00:00
|
|
|
set(_third_party_deps "@third_party_deps@")
|
|
|
|
|
|
|
|
foreach(_target_dep ${_third_party_deps})
|
|
|
|
list(GET _target_dep 0 pkg)
|
2020-09-14 07:37:03 +00:00
|
|
|
list(GET _target_dep 1 is_optional)
|
|
|
|
list(GET _target_dep 2 version)
|
|
|
|
list(GET _target_dep 3 components)
|
2019-05-03 14:03:15 +00:00
|
|
|
set(find_package_args "${pkg}")
|
|
|
|
if(version)
|
|
|
|
list(APPEND find_package_args "${version}")
|
|
|
|
endif()
|
2020-09-14 07:06:58 +00:00
|
|
|
if(components)
|
|
|
|
string(REPLACE " " ";" components "${components}")
|
2020-09-14 07:36:16 +00:00
|
|
|
list(APPEND find_package_args COMPONENTS ${components})
|
2019-05-03 14:03:15 +00:00
|
|
|
endif()
|
2020-09-14 07:36:16 +00:00
|
|
|
|
2020-09-14 07:37:03 +00:00
|
|
|
if(is_optional)
|
|
|
|
if(${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
|
|
|
|
list(APPEND find_package_args QUIET)
|
|
|
|
endif()
|
|
|
|
find_package(${find_package_args})
|
|
|
|
else()
|
|
|
|
find_dependency(${find_package_args})
|
|
|
|
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"
|
2019-05-03 14:03:15 +00:00
|
|
|
set(_target_deps "@target_deps@")
|
|
|
|
foreach(_target_dep ${_target_deps})
|
|
|
|
list(GET _target_dep 0 pkg)
|
|
|
|
list(GET _target_dep 1 version)
|
|
|
|
|
|
|
|
if (NOT ${pkg}_FOUND)
|
|
|
|
find_dependency(${pkg} ${version}
|
2020-09-25 18:02:56 +00:00
|
|
|
PATHS
|
|
|
|
@find_dependency_paths@
|
2021-02-24 15:07:37 +00:00
|
|
|
${_qt_additional_packages_prefix_path}
|
|
|
|
${_qt_additional_packages_prefix_path_env}
|
2020-09-25 18:02:56 +00:00
|
|
|
${QT_EXAMPLES_CMAKE_PREFIX_PATH}
|
|
|
|
${__qt_use_no_default_path_for_qt_packages}
|
2019-05-03 14:03:15 +00:00
|
|
|
)
|
|
|
|
endif()
|
2020-09-13 10:16:44 +00:00
|
|
|
endforeach()
|
2020-09-14 07:06:58 +00:00
|
|
|
|
|
|
|
set(@target@_FOUND TRUE)
|