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 Oct 13, 2024
1 parent b720385 commit 2381c2e
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 2381c2e

Please sign in to comment.