2024-02-20 09:45:50 +01:00
|
|
|
# Copyright (C) 2024 The Qt Company Ltd.
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
2019-11-21 13:33:28 +01:00
|
|
|
include_guard(DIRECTORY)
|
|
|
|
|
2024-10-21 11:32:41 +02:00
|
|
|
if(DEFINED QT_REPO_DEPENDENCIES
|
|
|
|
AND NOT QT_INTERNAL_BUILD_STANDALONE_PARTS
|
|
|
|
AND NOT QT_BUILD_STANDALONE_TESTS)
|
2021-03-22 20:43:25 +01: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 16:32:48 +02:00
|
|
|
@skip_internal_test_plugin@
|
|
|
|
|
2019-05-03 16:03:15 +02:00
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
2020-11-30 18:46:49 +11:00
|
|
|
cmake_minimum_required(VERSION @min_new_policy_version@...@max_new_policy_version@)
|
|
|
|
|
2019-05-03 16:03:15 +02:00
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
|
2019-06-04 17:08:47 +02:00
|
|
|
if (NOT QT_NO_CREATE_TARGETS)
|
|
|
|
# Find required dependencies, if any.
|
2020-08-10 16:44:13 +02: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 18:41:32 +01:00
|
|
|
else()
|
|
|
|
set(@target@_FOUND TRUE)
|
2019-06-04 17:08:47 +02:00
|
|
|
endif()
|
2019-05-03 16:03:15 +02:00
|
|
|
|
2024-12-17 18:41:32 +01: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 17:08:47 +02:00
|
|
|
endif()
|