Support MoltenVK from homebrew
MoltenVK installed from homebrew has the following directory structure: molten-vk/1.1.5/libexec/include/vulkan/vulkan.h molten-vk/1.1.5/include/MoltenVK/mvk_vulkan.h Task-number: QTBUG-80576 Pick-to: 6.2 Change-Id: If6f5aeb55908f60fff49417ee1ddf4c2db980c5a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
36a6d17af0
commit
a34a10c11f
@ -25,8 +25,8 @@ if(Vulkan_INCLUDE_DIR)
|
||||
_qt_skip_include_dir_for_pri TRUE)
|
||||
|
||||
# Also propagate MoltenVK include directory on Apple platforms if found.
|
||||
# Assumes the folder structure of the LunarG Vulkan SDK.
|
||||
if(APPLE)
|
||||
# Check for the LunarG Vulkan SDK folder structure.
|
||||
set(__qt_molten_vk_include_path "${Vulkan_INCLUDE_DIR}/../../MoltenVK/include")
|
||||
get_filename_component(
|
||||
__qt_molten_vk_include_path
|
||||
@ -35,6 +35,16 @@ if(Vulkan_INCLUDE_DIR)
|
||||
target_include_directories(WrapVulkanHeaders::WrapVulkanHeaders INTERFACE
|
||||
${__qt_molten_vk_include_path})
|
||||
endif()
|
||||
|
||||
# Check for homebrew molten-vk folder structure
|
||||
set(__qt_molten_vk_homebrew_include_path "${Vulkan_INCLUDE_DIR}/../../include")
|
||||
get_filename_component(
|
||||
__qt_molten_vk_homebrew_include_path
|
||||
"${__qt_molten_vk_homebrew_include_path}" ABSOLUTE)
|
||||
if(EXISTS "${__qt_molten_vk_homebrew_include_path}")
|
||||
target_include_directories(WrapVulkanHeaders::WrapVulkanHeaders INTERFACE
|
||||
${__qt_molten_vk_homebrew_include_path})
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user