Skip to content

Commit

Permalink
Merge pull request #382 from kwsp/cmake-vulkan-compiler
Browse files Browse the repository at this point in the history
expose `vulkan_compile_shader` with CMake install
  • Loading branch information
axsaucedo authored Jul 30, 2024
2 parents 1bdcc6a + 48a954e commit 5054745
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 5054745

Please sign in to comment.