mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-27 04:28:52 -05:00
9b75bffc88
Added GLFW_INCLUDE_VULKAN. Added glfwVulkanSupported, glfwGetRequiredInstanceExtensions, glfwGetInstanceProcAddress, glfwGetPhysicalDevicePresentationSupport and glfwCreateWindowSurface. Added port of LunarG SDK tri example.
24 lines
642 B
CMake
24 lines
642 B
CMake
# Find Vulkan
|
|
#
|
|
# VULKAN_INCLUDE_DIR
|
|
# VULKAN_LIBRARY
|
|
# VULKAN_FOUND
|
|
|
|
if (WIN32)
|
|
find_path(VULKAN_INCLUDE_DIR NAMES vulkan/vulkan.h HINTS
|
|
"$ENV{VK_SDK_PATH}/Include")
|
|
find_library(VULKAN_LIBRARY NAMES vulkan-1 HINTS
|
|
"$ENV{VK_SDK_PATH}/Bin")
|
|
else()
|
|
find_path(VULKAN_INCLUDE_DIR NAMES vulkan/vulkan.h HINTS
|
|
"$ENV{VULKAN_SDK}/include")
|
|
find_library(VULKAN_LIBRARY NAMES vulkan HINTS
|
|
"$ENV{VULKAN_SDK}/lib")
|
|
endif()
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(Vulkan DEFAULT_MSG VULKAN_LIBRARY VULKAN_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(VULKAN_INCLUDE_DIR VULKAN_LIBRARY)
|
|
|