2018-10-24 13:20:27 +00:00
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
|
|
|
# Slightly amended version of ./src/corelib/Qt5Config.cmake.in
|
|
|
|
if (CMAKE_VERSION VERSION_LESS 3.1.0)
|
|
|
|
message(FATAL_ERROR "Qt requires at least CMake version 3.1.0")
|
|
|
|
endif()
|
|
|
|
|
2019-02-11 10:34:35 +00:00
|
|
|
get_filename_component(_qt_cmake_dir "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE)
|
2018-10-24 13:20:27 +00:00
|
|
|
|
2019-02-11 10:34:35 +00:00
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@Targets.cmake")
|
2018-10-24 13:20:27 +00:00
|
|
|
|
2019-02-11 10:34:35 +00:00
|
|
|
# if (NOT @INSTALL_CMAKE_NAMESPACE@_FIND_COMPONENTS)
|
|
|
|
# set(@INSTALL_CMAKE_NAMESPACE@_NOT_FOUND_MESSAGE "The Qt package requires at least one component")
|
|
|
|
# set(@INSTALL_CMAKE_NAMESPACE@_FOUND False)
|
2018-10-24 13:20:27 +00:00
|
|
|
# return()
|
|
|
|
# endif()
|
|
|
|
|
2019-02-11 10:34:35 +00:00
|
|
|
foreach(module ${@INSTALL_CMAKE_NAMESPACE@_FIND_COMPONENTS})
|
|
|
|
find_package(@INSTALL_CMAKE_NAMESPACE@${module}
|
|
|
|
${_@INSTALL_CMAKE_NAMESPACE@_FIND_PARTS_QUIET}
|
|
|
|
${_@INSTALL_CMAKE_NAMESPACE@_FIND_PARTS_REQUIRED}
|
|
|
|
PATHS ${_qt_cmake_dir} NO_DEFAULT_PATH
|
2018-10-24 13:20:27 +00:00
|
|
|
)
|
2019-02-11 10:34:35 +00:00
|
|
|
if (NOT @INSTALL_CMAKE_NAMESPACE@${module}_FOUND)
|
2018-10-24 13:20:27 +00:00
|
|
|
string(CONFIGURE ${_qt5_module_location_template} _expected_module_location @ONLY)
|
|
|
|
|
2019-02-11 10:34:35 +00:00
|
|
|
if (@INSTALL_CMAKE_NAMESPACE@_FIND_REQUIRED_${module})
|
2018-10-24 13:20:27 +00:00
|
|
|
set(_Qt_NOTFOUND_MESSAGE "${_Qt_NOTFOUND_MESSAGE}Failed to find Qt component \"${module}\" config file at \"${_expected_module_location}\"\n")
|
|
|
|
elseif(NOT Qt_FIND_QUIETLY)
|
|
|
|
message(WARNING "Failed to find Qt component \"${module}\" config file at \"${_expected_module_location}\"")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
unset(_expected_module_location)
|
|
|
|
endif()
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
set(QT_BUILD_SHARED_LIBS @BUILD_SHARED_LIBS@)
|
2019-02-12 09:02:15 +00:00
|
|
|
set(QT_CMAKE_EXPORT_NAMESPACE @QT_CMAKE_EXPORT_NAMESPACE@)
|
2018-10-24 13:20:27 +00:00
|
|
|
|
|
|
|
if (_Qt_NOTFOUND_MESSAGE)
|
2019-02-11 10:34:35 +00:00
|
|
|
set(@INSTALL_CMAKE_NAMESPACE@_NOT_FOUND_MESSAGE "${_Qt_NOTFOUND_MESSAGE}")
|
|
|
|
set(@INSTALL_CMAKE_NAMESPACE@_FOUND False)
|
2018-10-24 13:20:27 +00:00
|
|
|
endif()
|