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 authored and alxbilger committed Sep 25, 2024
1 parent 3b8a503 commit c0dad15
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 c0dad15

Please sign in to comment.