Created
February 18, 2016 20:54
-
-
Save reima/61cb067ba2cb18d7d787 to your computer and use it in GitHub Desktop.
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
# FindVulkan | |
# ---------- | |
# | |
# Try to find Vulkan. | |
# | |
# Once done this will define: | |
# | |
# VULKAN_FOUND - Vulkan found | |
# VULKAN_INCLUDE_DIRS - Vulkan include directories | |
# VULKAN_LIBRARIES - Vulkan libraries | |
find_path(VULKAN_INCLUDE_DIR | |
NAMES | |
vulkan/vulkan.h | |
PATHS | |
/usr/include | |
/usr/local/include | |
$ENV{VK_SDK_PATH}/Include | |
) | |
find_library(VULKAN_LIBRARY | |
NAMES | |
vulkan-1 | |
vulkan | |
PATHS | |
$ENV{VK_SDK_PATH}/Bin | |
) | |
set(VULKAN_LIBRARIES ${VULKAN_LIBRARY}) | |
set(VULKAN_INCLUDE_DIRS ${VULKAN_INCLUDE_DIR}) | |
include(FindPackageHandleStandardArgs) | |
find_package_handle_standard_args( | |
Vulkan | |
FOUND_VAR VULKAN_FOUND | |
REQUIRED_VARS VULKAN_INCLUDE_DIR VULKAN_LIBRARY | |
) | |
mark_as_advanced( | |
VULKAN_INCLUDE_DIR | |
VULKAN_LIBRARY | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment