A Find Module for detecting the Vulkan loader library, checking environment variables set by the Vulkan SDK in addition to the default system locations.
See also
Implemented using FindPackageHandleStandardArgs
Variables
This modules adds the following variables:
- VULKAN_INCLUDE_DIR
A filepath variable to the include directory containing
vulkan/vulkan.h
.
- VULKAN_LIBRARY
A filepath variable to the directory containing the Vulkan loader libary.
- VULKAN_FOUND
A boolean CMake variable set to
TRUE
if bothVULKAN_LIBRARY
andVULKAN_LIBRARY
are set and valid,FALSE
otherwise.
Usage
To use load this module either include it or use CMake find_package.
include(FindVulkan)
find_package(Vulkan)
See also
UnitVK
Vulkan unit tests can be built with CMake option
UNITVK_USE_LOADER
enabled, which uses the FindVulkan
module to test
through the Vulkan loader.