diff --git a/CMakeLists.txt b/CMakeLists.txt index d869f407..e777b85e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -309,6 +309,13 @@ if(KOMPUTE_OPT_INSTALL) FILE komputeTargets.cmake NAMESPACE kompute:: DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/kompute) + + # Copy CMake files needed to `vulkan_compile_shader` + install(FILES + cmake/vulkan_shader_compiler.cmake + cmake/bin_file_to_header.cmake + cmake/bin2h.cmake + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/kompute) endif() diff --git a/cmake/komputeConfig.cmake.in b/cmake/komputeConfig.cmake.in index 77735762..ef053ce7 100644 --- a/cmake/komputeConfig.cmake.in +++ b/cmake/komputeConfig.cmake.in @@ -5,4 +5,7 @@ find_dependency(Vulkan REQUIRED) include(${CMAKE_CURRENT_LIST_DIR}/komputeTargets.cmake) -check_required_components(kompute) \ No newline at end of file +# Expose `vulkan_compile_shader` +include(${CMAKE_CURRENT_LIST_DIR}/vulkan_shader_compiler.cmake) + +check_required_components(kompute)