mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-02 07:15:27 +08:00
qt 6.5.1 original
This commit is contained in:
29
cmake/platforms/FindIntegrityPlatformGraphics.cmake
Normal file
29
cmake/platforms/FindIntegrityPlatformGraphics.cmake
Normal file
@ -0,0 +1,29 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
#.rst:
|
||||
# IntegrityPlatformGraphics
|
||||
# ---------
|
||||
find_package_handle_standard_args(IntegrityPlatformGraphics
|
||||
FOUND_VAR
|
||||
IntegrityPlatformGraphics_FOUND
|
||||
REQUIRED_VARS
|
||||
IntegrityPlatformGraphics_LIBRARY
|
||||
IntegrityPlatformGraphics_INCLUDE_DIR
|
||||
)
|
||||
|
||||
if(IntegrityPlatformGraphics_FOUND
|
||||
AND NOT TARGET IntegrityPlatformGraphics::IntegrityPlatformGraphics)
|
||||
add_library(IntegrityPlatformGraphics::IntegrityPlatformGraphics STATIC IMPORTED)
|
||||
set_target_properties(IntegrityPlatformGraphics::IntegrityPlatformGraphics PROPERTIES
|
||||
IMPORTED_LOCATION "${IntegrityPlatformGraphics_LIBRARY}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${IntegrityPlatformGraphics_INCLUDE_DIR}"
|
||||
)
|
||||
target_link_libraries(IntegrityPlatformGraphics::IntegrityPlatformGraphics
|
||||
INTERFACE ${IntegrityPlatformGraphics_LIBRARIES_PACK})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(IntegrityPlatformGraphics_LIBRARY)
|
||||
|
||||
# compatibility variables
|
||||
set(IntegrityPlatformGraphics_LIBRARIES ${IntegrityPlatformGraphics_LIBRARY})
|
11
cmake/platforms/Platform/Integrity.cmake
Normal file
11
cmake/platforms/Platform/Integrity.cmake
Normal file
@ -0,0 +1,11 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
# Custom platform module file for INTEGRITY.
|
||||
#
|
||||
# UNIX must be set here, because this variable is cleared after the toolchain file is loaded.
|
||||
#
|
||||
# Once the lowest CMake version we support ships an Integrity platform module,
|
||||
# we can remove this file.
|
||||
|
||||
set(UNIX 1)
|
Reference in New Issue
Block a user