1# Find Vulkan 2# 3# VULKAN_INCLUDE_DIR 4# VULKAN_LIBRARY 5# VULKAN_FOUND 6 7if (WIN32) 8 find_path(VULKAN_INCLUDE_DIR NAMES vulkan/vulkan.h HINTS 9 "$ENV{VULKAN_SDK}/Include" 10 "$ENV{VK_SDK_PATH}/Include") 11 if (CMAKE_CL_64) 12 find_library(VULKAN_LIBRARY NAMES vulkan-1 HINTS 13 "$ENV{VULKAN_SDK}/Bin" 14 "$ENV{VK_SDK_PATH}/Bin") 15 find_library(VULKAN_STATIC_LIBRARY NAMES vkstatic.1 HINTS 16 "$ENV{VULKAN_SDK}/Bin" 17 "$ENV{VK_SDK_PATH}/Bin") 18 else() 19 find_library(VULKAN_LIBRARY NAMES vulkan-1 HINTS 20 "$ENV{VULKAN_SDK}/Bin32" 21 "$ENV{VK_SDK_PATH}/Bin32") 22 endif() 23else() 24 find_path(VULKAN_INCLUDE_DIR NAMES vulkan/vulkan.h HINTS 25 "$ENV{VULKAN_SDK}/include") 26 find_library(VULKAN_LIBRARY NAMES vulkan HINTS 27 "$ENV{VULKAN_SDK}/lib") 28endif() 29 30include(FindPackageHandleStandardArgs) 31find_package_handle_standard_args(Vulkan DEFAULT_MSG VULKAN_LIBRARY VULKAN_INCLUDE_DIR) 32 33mark_as_advanced(VULKAN_INCLUDE_DIR VULKAN_LIBRARY VULKAN_STATIC_LIBRARY) 34 35