Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ write_basic_package_version_file(
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/owlConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/owlConfigVersion.cmake
${PROJECT_SOURCE_DIR}/owl/cmake/embed_ptx.cmake
${PROJECT_SOURCE_DIR}/owl/cmake/run_bin2c.cmake
DESTINATION
${OWL_CMAKE_INSTALL_DESTINATION}
)
Expand Down
6 changes: 5 additions & 1 deletion owl/cmake/owlConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ if (@OWL_HAVE_TBB@)
set(OWL_HAVE_TBB ON)
endif()

find_dependency(CUDAToolkit)
find_package(CUDAToolkit REQUIRED)
target_link_libraries(owl::owl INTERFACE CUDA::cudart_static)

include(${CMAKE_CURRENT_LIST_DIR}/embed_ptx.cmake)

foreach(component ${owl_FIND_COMPONENTS})
# For requested component, execute its "config" script
Expand All @@ -43,3 +45,5 @@ foreach(component ${owl_FIND_COMPONENTS})
endforeach()

check_required_components(@PROJECT_NAME@)