KomputeProject / kompute

General purpose GPU compute framework built on Vulkan to support 1000s of cross vendor graphics cards (AMD, Qualcomm, NVIDIA & friends). Blazing fast, mobile-enabled, asynchronous and optimized for advanced GPU data processing usecases. Backed by the Linux Foundation.
http://kompute.cc/
Apache License 2.0
2.02k stars 156 forks source link

Add CMake install target for `vulkan_compile_shader` #381

Closed kwsp closed 4 months ago

kwsp commented 4 months ago

Currently I believe the CMake install target (kompute::kompute) and komputeConfig.cmake do not expose the vulkan_compile_shader CMake function to the consumer.

The 2 examples that use this CMake helper both use add_subdirectory (or FetchContent_MakeAvailable, which internally uses add_subdirectory), which exposes the vulkan_compile_shader function via intermediate include.

kwsp commented 4 months ago

This should be as simple as adding a install CMake command for cmake/vulkan_shader_compiler.cmake. I'd be happy to submit a PR but do you have any tips on which CMake file this should be added to? I'm a bit lost navigating all the install CMake calls in all the CMake files.

Edit: I figured it out.