Skip to content

Commit

Permalink
use modern-cmake mechanism for cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy committed Sep 12, 2024
1 parent 56a4365 commit 2930512
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ set(CUDA_SOURCES
sofa_find_package(SofaDistanceGrid REQUIRED)
sofa_find_package(SofaCUDA REQUIRED)

cuda_add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES} ${CUDA_SOURCES})
add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES} ${CUDA_SOURCES})

target_link_libraries(${PROJECT_NAME} SofaDistanceGrid)
target_link_libraries(${PROJECT_NAME} SofaCUDA)

Expand Down

0 comments on commit 2930512

Please sign in to comment.