Last active
January 23, 2025 17:57
-
-
Save uilianries/1454b0e93fe0449ea7df6493e9f1924f to your computer and use it in GitHub Desktop.
Qt6 Gui Cmake files - Originals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2024 The Qt Company Ltd. | |
# SPDX-License-Identifier: BSD-3-Clause | |
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### | |
####### Any changes to this file will be overwritten by the next CMake run #### | |
####### The input file was QtModuleConfig.cmake.in ######## | |
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE) | |
macro(set_and_check _var _file) | |
set(${_var} "${_file}") | |
if(NOT EXISTS "${_file}") | |
message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") | |
endif() | |
endmacro() | |
macro(check_required_components _NAME) | |
foreach(comp ${${_NAME}_FIND_COMPONENTS}) | |
if(NOT ${_NAME}_${comp}_FOUND) | |
if(${_NAME}_FIND_REQUIRED_${comp}) | |
set(${_NAME}_FOUND FALSE) | |
endif() | |
endif() | |
endforeach() | |
endmacro() | |
#################################################################################### | |
cmake_minimum_required(VERSION 3.16...3.21) | |
include(CMakeFindDependencyMacro) | |
get_filename_component(_import_prefix "${CMAKE_CURRENT_LIST_FILE}" PATH) | |
get_filename_component(_import_prefix "${_import_prefix}" REALPATH) | |
# Extra cmake code begin | |
# Extra cmake code end | |
# Find required dependencies, if any. | |
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/Qt6GuiDependencies.cmake") | |
include("${CMAKE_CURRENT_LIST_DIR}/Qt6GuiDependencies.cmake") | |
_qt_internal_suggest_dependency_debugging(Gui | |
__qt_Gui_pkg ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE) | |
endif() | |
# If *ConfigDependencies.cmake exists, the variable value will be defined there. | |
# Don't override it in that case. | |
if(NOT DEFINED "Qt6Gui_FOUND") | |
set("Qt6Gui_FOUND" TRUE) | |
endif() | |
if (NOT QT_NO_CREATE_TARGETS AND Qt6Gui_FOUND) | |
include("${CMAKE_CURRENT_LIST_DIR}/Qt6GuiTargets.cmake") | |
include("${CMAKE_CURRENT_LIST_DIR}/Qt6GuiAdditionalTargetInfo.cmake") | |
include("${CMAKE_CURRENT_LIST_DIR}/Qt6GuiExtraProperties.cmake" | |
OPTIONAL) | |
if(NOT QT_NO_CREATE_VERSIONLESS_TARGETS) | |
include("${CMAKE_CURRENT_LIST_DIR}/Qt6GuiVersionlessTargets.cmake") | |
endif() | |
# DEPRECATED | |
# Provide old style variables for includes, compile definitions, etc. | |
# These variables are deprecated and only provided on a best-effort basis to facilitate porting. | |
# Consider using target_link_libraries(app PRIVATE Qt6Gui) instead. | |
set(Qt6Gui_LIBRARIES "Qt6::Gui") | |
get_target_property(_Qt6Gui_OWN_INCLUDE_DIRS | |
Qt6::Gui INTERFACE_INCLUDE_DIRECTORIES) | |
if(NOT _Qt6Gui_OWN_INCLUDE_DIRS) | |
set(_Qt6Gui_OWN_INCLUDE_DIRS "") | |
endif() | |
if(TARGET Qt6::GuiPrivate) | |
get_target_property(_Qt6Gui_OWN_PRIVATE_INCLUDE_DIRS | |
Qt6::GuiPrivate INTERFACE_INCLUDE_DIRECTORIES) | |
if(NOT _Qt6Gui_OWN_PRIVATE_INCLUDE_DIRS) | |
set(_Qt6Gui_OWN_PRIVATE_INCLUDE_DIRS "") | |
endif() | |
endif() | |
get_target_property(Qt6Gui_DEFINITIONS | |
Qt6::Gui INTERFACE_COMPILE_DEFINITIONS) | |
if(NOT Qt6Gui_DEFINITIONS) | |
set(Qt6Gui_DEFINITIONS "") | |
else() | |
set(updated_defs "") | |
foreach(def IN LISTS Qt6Gui_DEFINITIONS) | |
if(def MATCHES "^[A-Za-z_]") | |
list(APPEND updated_defs "-D${def}") | |
else() | |
list(APPEND updated_defs "${def}") | |
endif() | |
endforeach() | |
set(Qt6Gui_DEFINITIONS "${updated_defs}") | |
unset(updated_defs) | |
endif() | |
get_target_property(Qt6Gui_COMPILE_DEFINITIONS | |
Qt6::Gui INTERFACE_COMPILE_DEFINITIONS) | |
if(NOT Qt6Gui_COMPILE_DEFINITIONS) | |
set(Qt6Gui_COMPILE_DEFINITIONS "") | |
endif() | |
set(Qt6Gui_INCLUDE_DIRS | |
${_Qt6Gui_OWN_INCLUDE_DIRS}) | |
set(Qt6Gui_PRIVATE_INCLUDE_DIRS | |
${_Qt6Gui_OWN_PRIVATE_INCLUDE_DIRS}) | |
foreach(_module_dep ${_Qt6Gui_MODULE_DEPENDENCIES}) | |
if(_module_dep MATCHES ".+Private$") | |
set(_private_suffix "Private") | |
else() | |
set(_private_suffix "") | |
endif() | |
list(APPEND Qt6Gui${_private_suffix}_INCLUDE_DIRS | |
${Qt6${_module_dep}_INCLUDE_DIRS}) | |
list(APPEND Qt6Gui${_private_suffix}_PRIVATE_INCLUDE_DIRS | |
${Qt6${_module_dep}_PRIVATE_INCLUDE_DIRS}) | |
if(_private_suffix) | |
list(APPEND Qt6Gui_PRIVATE_INCLUDE_DIRS | |
${Qt6${_module_dep}_PRIVATE_INCLUDE_DIRS}) | |
endif() | |
list(APPEND Qt6Gui${_private_suffix}_DEFINITIONS | |
${Qt6${_module_dep}_DEFINITIONS}) | |
list(APPEND Qt6Gui${_private_suffix}_COMPILE_DEFINITIONS | |
${Qt6${_module_dep}_COMPILE_DEFINITIONS}) | |
endforeach() | |
unset(_private_suffix) | |
list(REMOVE_DUPLICATES Qt6Gui_INCLUDE_DIRS) | |
list(REMOVE_DUPLICATES Qt6Gui_PRIVATE_INCLUDE_DIRS) | |
list(REMOVE_DUPLICATES Qt6Gui_DEFINITIONS) | |
list(REMOVE_DUPLICATES Qt6Gui_COMPILE_DEFINITIONS) | |
endif() | |
if (TARGET Qt6::Gui) | |
qt_make_features_available(Qt6::Gui) | |
foreach(extra_cmake_include ) | |
include("${CMAKE_CURRENT_LIST_DIR}/${extra_cmake_include}") | |
endforeach() | |
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/Qt6GuiPlugins.cmake") | |
include("${CMAKE_CURRENT_LIST_DIR}/Qt6GuiPlugins.cmake") | |
endif() | |
list(APPEND QT_ALL_MODULES_FOUND_VIA_FIND_PACKAGE "Gui") | |
get_target_property(_qt_module_target_type "Qt6::Gui" TYPE) | |
if(NOT _qt_module_target_type STREQUAL "INTERFACE_LIBRARY") | |
get_target_property(_qt_module_plugin_types | |
Qt6::Gui MODULE_PLUGIN_TYPES) | |
if(_qt_module_plugin_types) | |
list(APPEND QT_ALL_PLUGIN_TYPES_FOUND_VIA_FIND_PACKAGE "${_qt_module_plugin_types}") | |
endif() | |
endif() | |
# Load Module's BuildInternals should any exist | |
if (Qt6BuildInternals_DIR AND | |
EXISTS "${CMAKE_CURRENT_LIST_DIR}/Qt6GuiBuildInternals.cmake") | |
include("${CMAKE_CURRENT_LIST_DIR}/Qt6GuiBuildInternals.cmake") | |
endif() | |
else() | |
set(Qt6Gui_FOUND FALSE) | |
if(NOT DEFINED Qt6Gui_NOT_FOUND_MESSAGE) | |
set(Qt6Gui_NOT_FOUND_MESSAGE | |
"Target \"Qt6::Gui\" was not found.") | |
if(QT_NO_CREATE_TARGETS) | |
string(APPEND Qt6Gui_NOT_FOUND_MESSAGE | |
"Possibly due to QT_NO_CREATE_TARGETS being set to TRUE and thus " | |
"${CMAKE_CURRENT_LIST_DIR}/Qt6GuiTargets.cmake was not " | |
"included to define the target.") | |
endif() | |
endif() | |
endif() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by CMake | |
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8) | |
message(FATAL_ERROR "CMake >= 2.8.0 required") | |
endif() | |
if(CMAKE_VERSION VERSION_LESS "3.1.0") | |
message(FATAL_ERROR "CMake >= 3.1.0 required") | |
endif() | |
cmake_policy(PUSH) | |
cmake_policy(VERSION 3.1.0...3.28) | |
#---------------------------------------------------------------- | |
# Generated CMake target import file. | |
#---------------------------------------------------------------- | |
# Commands may need to know the format version. | |
set(CMAKE_IMPORT_FILE_VERSION 1) | |
# Protect against multiple inclusion, which would fail when already imported targets are added once more. | |
set(_cmake_targets_defined "") | |
set(_cmake_targets_not_defined "") | |
set(_cmake_expected_targets "") | |
foreach(_cmake_expected_target IN ITEMS Qt6::Gui Qt6::GuiPrivate Qt6::Gui_resources_1 Qt6::Gui_resources_2) | |
list(APPEND _cmake_expected_targets "${_cmake_expected_target}") | |
if(TARGET "${_cmake_expected_target}") | |
list(APPEND _cmake_targets_defined "${_cmake_expected_target}") | |
else() | |
list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}") | |
endif() | |
endforeach() | |
unset(_cmake_expected_target) | |
if(_cmake_targets_defined STREQUAL _cmake_expected_targets) | |
unset(_cmake_targets_defined) | |
unset(_cmake_targets_not_defined) | |
unset(_cmake_expected_targets) | |
unset(CMAKE_IMPORT_FILE_VERSION) | |
cmake_policy(POP) | |
return() | |
endif() | |
if(NOT _cmake_targets_defined STREQUAL "") | |
string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}") | |
string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}") | |
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n") | |
endif() | |
unset(_cmake_targets_defined) | |
unset(_cmake_targets_not_defined) | |
unset(_cmake_expected_targets) | |
# Compute the installation prefix relative to this file. | |
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) | |
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) | |
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) | |
if(_IMPORT_PREFIX STREQUAL "/") | |
set(_IMPORT_PREFIX "") | |
endif() | |
# Create imported target Qt6::Gui | |
add_library(Qt6::Gui STATIC IMPORTED) | |
set_target_properties(Qt6::Gui PROPERTIES | |
COMPATIBLE_INTERFACE_STRING "QT_MAJOR_VERSION" | |
INTERFACE_COMPILE_DEFINITIONS "QT_GUI_LIB" | |
INTERFACE_COMPILE_OPTIONS "-fPIC" | |
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/Qt6/QtGui;${_IMPORT_PREFIX}/include/Qt6" | |
INTERFACE_LINK_LIBRARIES "Qt6::Core;\$<LINK_ONLY:Qt6::CorePrivate>;\$<LINK_ONLY:Qt6::PlatformModuleInternal>;\$<\$<AND:\$<NOT:\$<STREQUAL:\$<TARGET_PROPERTY:TYPE>,STATIC_LIBRARY>>,\$<NOT:\$<BOOL:\$<TARGET_PROPERTY:Qt6::Platform,_qt_link_order_matters>>>,\$<NOT:\$<BOOL:\$<TARGET_PROPERTY:_qt_object_libraries_finalizer_mode>>>,\$<BOOL:TRUE>>:\$<TARGET_OBJECTS:Qt6::Gui_resources_1>>;Qt6::Gui_resources_1;\$<\$<AND:\$<NOT:\$<STREQUAL:\$<TARGET_PROPERTY:TYPE>,STATIC_LIBRARY>>,\$<NOT:\$<BOOL:\$<TARGET_PROPERTY:Qt6::Platform,_qt_link_order_matters>>>,\$<NOT:\$<BOOL:\$<TARGET_PROPERTY:_qt_object_libraries_finalizer_mode>>>,\$<BOOL:TRUE>>:\$<TARGET_OBJECTS:Qt6::Gui_resources_2>>;Qt6::Gui_resources_2;\$<LINK_ONLY:WrapFreetype::WrapFreetype>;\$<LINK_ONLY:WrapZLIB::WrapZLIB>" | |
INTERFACE_LINK_OPTIONS "\$<\$<AND:\$<NOT:\$<STREQUAL:\$<TARGET_PROPERTY:TYPE>,STATIC_LIBRARY>>,\$<BOOL:\$<TARGET_PROPERTY:Qt6::Platform,_qt_link_order_matters>>,\$<BOOL:\$<GENEX_EVAL:\$<TARGET_PROPERTY:Qt6::Platform,_qt_cmp0099_policy_check>>>,\$<BOOL:TRUE>>:\$<TARGET_OBJECTS:Qt6::Gui_resources_1>>;\$<\$<AND:\$<NOT:\$<STREQUAL:\$<TARGET_PROPERTY:TYPE>,STATIC_LIBRARY>>,\$<BOOL:\$<TARGET_PROPERTY:Qt6::Platform,_qt_link_order_matters>>,\$<BOOL:\$<GENEX_EVAL:\$<TARGET_PROPERTY:Qt6::Platform,_qt_cmp0099_policy_check>>>,\$<BOOL:TRUE>>:\$<TARGET_OBJECTS:Qt6::Gui_resources_2>>" | |
INTERFACE_QT_MAJOR_VERSION "6" | |
INTERFACE_SOURCES "\$<\$<BOOL:\$<TARGET_PROPERTY:QT_CONSUMES_METATYPES>>:${_IMPORT_PREFIX}/./metatypes/qt6gui_release_metatypes.json>;\$<\$<AND:\$<NOT:\$<STREQUAL:\$<TARGET_PROPERTY:TYPE>,STATIC_LIBRARY>>,\$<BOOL:\$<TARGET_PROPERTY:Qt6::Platform,_qt_link_order_matters>>,\$<NOT:\$<BOOL:\$<GENEX_EVAL:\$<TARGET_PROPERTY:Qt6::Platform,_qt_cmp0099_policy_check>>>>,\$<NOT:\$<BOOL:\$<TARGET_PROPERTY:_qt_object_libraries_finalizer_mode>>>,\$<BOOL:TRUE>>:\$<TARGET_OBJECTS:Qt6::Gui_resources_1>>;\$<\$<AND:\$<NOT:\$<STREQUAL:\$<TARGET_PROPERTY:TYPE>,STATIC_LIBRARY>>,\$<BOOL:\$<TARGET_PROPERTY:Qt6::Platform,_qt_link_order_matters>>,\$<NOT:\$<BOOL:\$<GENEX_EVAL:\$<TARGET_PROPERTY:Qt6::Platform,_qt_cmp0099_policy_check>>>>,\$<NOT:\$<BOOL:\$<TARGET_PROPERTY:_qt_object_libraries_finalizer_mode>>>,\$<BOOL:TRUE>>:\$<TARGET_OBJECTS:Qt6::Gui_resources_2>>" | |
MODULE_PLUGIN_TYPES "accessiblebridge;platforms;platforms_darwin;xcbglintegrations;platformthemes;platforminputcontexts;generic;iconengines;imageformats;egldeviceintegrations" | |
QT_DISABLED_PRIVATE_FEATURES "accessibility_atspi_bridge;directfb;directwrite;directwrite3;direct2d;direct2d1_1;evdev;fontconfig;harfbuzz;system_harfbuzz;qqnx_imf;integrityfb;kms;drm_atomic;libinput;integrityhid;libinput_axis_api;libinput_hires_wheel_support;vsp2;vnc;mtdev;vkkhrdisplay;egl_x11;eglfs;eglfs_brcm;eglfs_egldevice;eglfs_gbm;eglfs_vsp2;eglfs_mali;eglfs_viv;eglfs_rcar;eglfs_viv_wl;eglfs_openwfd;eglfs_x11;jpeg;system_jpeg;png;system_png;tslib;tuiotouch;xcb_glx;xcb_egl_plugin;xcb_native_painting;xrender;xcb_xlib;xcb_sm;system_xcb_xinput;xkbcommon;xkbcommon_x11;xlib;graphicsframecapture" | |
QT_DISABLED_PUBLIC_FEATURES "accessibility_atspi_bridge;fontconfig;harfbuzz;opengles2;opengles3;opengles31;opengles32;dynamicgl;opengl;vulkan;metal;openvg;egl;xcb;xcb_glx_plugin;system_textmarkdownreader" | |
QT_ENABLED_PRIVATE_FEATURES "freetype;system_freetype;linuxfb;vkgen;gif;ico;imageio_text_loading;multiprocess;raster_64bit;raster_fp" | |
QT_ENABLED_PUBLIC_FEATURES "freetype;ico;sessionmanager;texthtmlparser;textmarkdownreader;textmarkdownwriter;textodfwriter;cssparser;draganddrop;action;cursor;clipboard;wheelevent;tabletevent;im;highdpiscaling;validator;standarditemmodel;filesystemmodel;imageformatplugin;movie;imageformat_bmp;imageformat_ppm;imageformat_xbm;imageformat_xpm;imageformat_png;imageformat_jpeg;image_heuristic_mask;image_text;picture;colornames;pdf;desktopservices;systemtrayicon;accessibility;whatsthis;undocommand;undostack;undogroup;wayland" | |
QT_QMAKE_PRIVATE_CONFIG "" | |
QT_QMAKE_PUBLIC_CONFIG "" | |
QT_QMAKE_PUBLIC_QT_CONFIG "" | |
_qt_config_module_name "gui" | |
_qt_is_internal_library "TRUE" | |
_qt_is_internal_target "TRUE" | |
_qt_is_public_module "TRUE" | |
_qt_module_has_headers "ON" | |
_qt_module_has_private_headers "TRUE" | |
_qt_module_has_public_headers "TRUE" | |
_qt_module_has_qpa_headers "TRUE" | |
_qt_module_has_rhi_headers "TRUE" | |
_qt_module_include_name "QtGui" | |
_qt_module_interface_name "Gui" | |
_qt_package_name "Qt6Gui" | |
_qt_package_version "6.8.1" | |
_qt_private_module_target_name "GuiPrivate" | |
_qt_sbom_spdx_id "SPDXRef-Package-qtbase-qt-module-Gui" | |
_qt_sbom_spdx_relative_installed_repo_document_path "sbom/qtbase-6.8.1.spdx" | |
_qt_sbom_spdx_repo_document_namespace "https://qt.io/spdxdocs/qtbase-6.8.1" | |
_qt_sbom_spdx_repo_project_name_lowercase "qtbase" | |
) | |
# Create imported target Qt6::GuiPrivate | |
add_library(Qt6::GuiPrivate INTERFACE IMPORTED) | |
set_target_properties(Qt6::GuiPrivate PROPERTIES | |
INTERFACE_INCLUDE_DIRECTORIES "\$<\$<BOOL:\$<TARGET_PROPERTY:Qt6::Gui,_qt_module_has_private_headers>>:>;\$<\$<BOOL:\$<TARGET_PROPERTY:Qt6::Gui,_qt_module_has_private_headers>>:>;\$<\$<BOOL:\$<TARGET_PROPERTY:Qt6::Gui,_qt_module_has_private_headers>>:${_IMPORT_PREFIX}/include/Qt6/QtGui/6.8.1>;\$<\$<BOOL:\$<TARGET_PROPERTY:Qt6::Gui,_qt_module_has_private_headers>>:${_IMPORT_PREFIX}/include/Qt6/QtGui/6.8.1/QtGui>" | |
INTERFACE_LINK_LIBRARIES "Qt6::CorePrivate;Qt6::Gui" | |
_qt_config_module_name "gui_private" | |
_qt_is_private_module "TRUE" | |
_qt_package_name "Qt6Gui" | |
_qt_package_version "6.8.1" | |
_qt_public_module_target_name "Gui" | |
_qt_sbom_spdx_id "SPDXRef-Package-qtbase-qt-module-Gui" | |
_qt_sbom_spdx_relative_installed_repo_document_path "sbom/qtbase-6.8.1.spdx" | |
_qt_sbom_spdx_repo_document_namespace "https://qt.io/spdxdocs/qtbase-6.8.1" | |
_qt_sbom_spdx_repo_project_name_lowercase "qtbase" | |
) | |
# Create imported target Qt6::Gui_resources_1 | |
add_library(Qt6::Gui_resources_1 OBJECT IMPORTED) | |
set_target_properties(Qt6::Gui_resources_1 PROPERTIES | |
INTERFACE_LINK_LIBRARIES "Qt6::Core;\$<LINK_ONLY:Qt6::Platform>;\$<LINK_ONLY:Qt6::PlatformModuleInternal>" | |
_is_qt_propagated_object_library "TRUE" | |
) | |
# Create imported target Qt6::Gui_resources_2 | |
add_library(Qt6::Gui_resources_2 OBJECT IMPORTED) | |
set_target_properties(Qt6::Gui_resources_2 PROPERTIES | |
INTERFACE_LINK_LIBRARIES "Qt6::Core;\$<LINK_ONLY:Qt6::Platform>;\$<LINK_ONLY:Qt6::PlatformModuleInternal>" | |
_is_qt_propagated_object_library "TRUE" | |
) | |
# Load information for each installed configuration. | |
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/Qt6GuiTargets-*.cmake") | |
foreach(_cmake_config_file IN LISTS _cmake_config_files) | |
include("${_cmake_config_file}") | |
endforeach() | |
unset(_cmake_config_file) | |
unset(_cmake_config_files) | |
# Cleanup temporary variables. | |
set(_IMPORT_PREFIX) | |
# Loop over all imported files and verify that they actually exist | |
foreach(_cmake_target IN LISTS _cmake_import_check_targets) | |
if(CMAKE_VERSION VERSION_LESS "3.28" | |
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target} | |
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}") | |
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}") | |
if(NOT EXISTS "${_cmake_file}") | |
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file | |
\"${_cmake_file}\" | |
but this file does not exist. Possible reasons include: | |
* The file was deleted, renamed, or moved to another location. | |
* An install or uninstall procedure did not complete successfully. | |
* The installation package was faulty and contained | |
\"${CMAKE_CURRENT_LIST_FILE}\" | |
but not all the files it references. | |
") | |
endif() | |
endforeach() | |
endif() | |
unset(_cmake_file) | |
unset("_cmake_import_check_files_for_${_cmake_target}") | |
endforeach() | |
unset(_cmake_target) | |
unset(_cmake_import_check_targets) | |
# Make sure the targets which have been exported in some other | |
# export set exist. | |
unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets) | |
foreach(_target "Qt6::Platform" "Qt6::Core" "Qt6::CorePrivate" "Qt6::PlatformModuleInternal" ) | |
if(NOT TARGET "${_target}" ) | |
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets "${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets} ${_target}") | |
endif() | |
endforeach() | |
if(DEFINED ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets) | |
if(CMAKE_FIND_PACKAGE_NAME) | |
set( ${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE) | |
set( ${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}") | |
else() | |
message(FATAL_ERROR "The following imported targets are referenced, but are missing: ${${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets}") | |
endif() | |
endif() | |
unset(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE_targets) | |
# Commands beyond this point should not need to know the version. | |
set(CMAKE_IMPORT_FILE_VERSION) | |
cmake_policy(POP) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment