2019-11-21 12:33:28 +00:00
|
|
|
include_guard(DIRECTORY)
|
|
|
|
|
2021-04-20 15:23:47 +00:00
|
|
|
if(DEFINED QT_REPO_DEPENDENCIES AND NOT QT_BUILD_STANDALONE_TESTS)
|
2021-03-22 19:43:25 +00:00
|
|
|
# We're building a Qt repository.
|
|
|
|
# Skip this plugin if it has not been provided by one of this repo's dependencies.
|
|
|
|
string(TOLOWER "@PROJECT_NAME@" lower_case_project_name)
|
|
|
|
if(NOT lower_case_project_name IN_LIST QT_REPO_DEPENDENCIES)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-05-03 14:03:15 +00:00
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
2020-11-30 07:46:49 +00:00
|
|
|
cmake_minimum_required(VERSION @min_new_policy_version@...@max_new_policy_version@)
|
|
|
|
|
2019-05-03 14:03:15 +00:00
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
|
|
|
|
get_filename_component(_import_prefix "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
|
|
get_filename_component(_import_prefix "${_import_prefix}" REALPATH)
|
|
|
|
|
2019-06-04 15:08:47 +00:00
|
|
|
if (NOT QT_NO_CREATE_TARGETS)
|
|
|
|
# Find required dependencies, if any.
|
2020-08-10 14:44:13 +00:00
|
|
|
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Dependencies.cmake")
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Dependencies.cmake")
|
2019-06-04 15:08:47 +00:00
|
|
|
endif()
|
2019-05-03 14:03:15 +00:00
|
|
|
|
2019-08-29 15:57:04 +00:00
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Targets.cmake")
|
2020-09-22 20:16:20 +00:00
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@AdditionalTargetInfo.cmake")
|
2019-06-04 15:08:47 +00:00
|
|
|
endif()
|