Skip to content

Commit

Permalink
expose vulkan_compile_shader with CMake install
Browse files Browse the repository at this point in the history
Signed-off-by: tnie <tnie@tuta.io>
  • Loading branch information
kwsp committed Jul 30, 2024
1 parent 1bdcc6a commit 48a954e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down
5 changes: 4 additions & 1 deletion cmake/komputeConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ find_dependency(Vulkan REQUIRED)

include(${CMAKE_CURRENT_LIST_DIR}/komputeTargets.cmake)

check_required_components(kompute)
# Expose `vulkan_compile_shader`
include(${CMAKE_CURRENT_LIST_DIR}/vulkan_shader_compiler.cmake)

check_required_components(kompute)

0 comments on commit 48a954e

Please sign in to comment.