2024-02-20 08:45:50 +00:00
|
|
|
# Copyright (C) 2024 The Qt Company Ltd.
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
2019-11-21 12:33:28 +00:00
|
|
|
include_guard(DIRECTORY)
|
|
|
|
|
2024-10-21 09:32:41 +00:00
|
|
|
if(DEFINED QT_REPO_DEPENDENCIES
|
|
|
|
AND NOT QT_INTERNAL_BUILD_STANDALONE_PARTS
|
|
|
|
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()
|
|
|
|
|
2024-08-06 14:32:48 +00:00
|
|
|
@skip_internal_test_plugin@
|
|
|
|
|
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)
|
|
|
|
|
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")
|
2024-12-17 17:41:32 +00:00
|
|
|
else()
|
|
|
|
set(@target@_FOUND TRUE)
|
2019-06-04 15:08:47 +00:00
|
|
|
endif()
|
2019-05-03 14:03:15 +00:00
|
|
|
|
2024-12-17 17:41:32 +00:00
|
|
|
if(@target@_FOUND)
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@Targets.cmake")
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/@INSTALL_CMAKE_NAMESPACE@@target@AdditionalTargetInfo.cmake")
|
|
|
|
endif()
|
2019-06-04 15:08:47 +00:00
|
|
|
endif()
|