2018-10-24 13:20:27 +00:00
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
2019-02-11 10:34:35 +00:00
|
|
|
include(CMakeFindDependencyMacro)
|
2018-10-24 13:20:27 +00:00
|
|
|
|
2019-02-11 10:34:35 +00:00
|
|
|
get_filename_component(_import_prefix "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
|
|
get_filename_component(_import_prefix "${_import_prefix}" REALPATH)
|
2018-10-24 13:20:27 +00:00
|
|
|
|
2019-02-11 10:34:35 +00:00
|
|
|
# note: target_deps example: "Qt5Core\;5.12.0;Qt5Gui\;5.12.0"
|
|
|
|
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}
|
|
|
|
PATHS "${CMAKE_CURRENT_LIST_DIR}/.." NO_DEFAULT_PATH
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT ${pkg}_FOUND)
|
2019-02-13 11:33:21 +00:00
|
|
|
set(@INSTALL_CMAKE_NAMESPACE@@target@_FOUND FALSE)
|
2019-02-11 10:34:35 +00:00
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Targets.cmake")
|
|
|
|
|
2019-02-12 11:21:56 +00:00
|
|
|
foreach(extra_cmake_include @extra_cmake_includes@)
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/${extra_cmake_include}")
|
|
|
|
endforeach()
|
2019-01-14 10:35:53 +00:00
|
|
|
|
2019-02-11 10:34:35 +00:00
|
|
|
include(${_import_prefix}/../@INSTALL_CMAKE_NAMESPACE@/QtFeature.cmake)
|
2019-01-14 10:35:53 +00:00
|
|
|
|
2019-02-12 09:02:15 +00:00
|
|
|
qt_make_features_available(@QT_CMAKE_EXPORT_NAMESPACE@::@target@)
|