I would like to contribute two improvements to FindVulkan.cmake . I am
posting it this way as the improvements are trivial (but very useful for
us working with Vulkan). In short, they just append two targets:
Vulkan::Headers and Vulkan::glslangValidator . The first one complements
existing Vulkan::Vulkan target, but excluding Vulkan library from the
target. It allows for applications that loads Vulkan library in
run-time, thus no link-time libraries. The second one
(Vulkan::glslangValidator) provides path to the glslangValidator
executable. glslangValidator is the tool for converting between shader
languages (GLSL, SPIR-V,…). It is very useful in the build process.
Feel free to improve my contribution or provide further comments how to
improve it.
Jan
FindVulkan.cmake (4.73 KB)