Skip to content

Commit

Permalink
Slight cuda-related CMake cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed Jul 6, 2021
1 parent 150704e commit b58bb22
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ if (CMAKE_CUDA_COMPILER)
)
target_link_libraries(libvis_cuda PUBLIC
libvis
CUDA::cublas
)
target_compile_options(libvis_cuda PRIVATE
$<$<COMPILE_LANGUAGE:CUDA>:-use_fast_math>
Expand All @@ -497,14 +498,12 @@ if (CMAKE_CUDA_COMPILER)
gtest_main
Threads::Threads
libvis_cuda
CUDA::cublas # TODO: currently required because of lm_optimizer.h. That should not be necessary.
)
target_include_directories(libvis_cuda_test PRIVATE
${gtest_SOURCE_DIR}/include
#${gtest_SOURCE_DIR}
${OpenCV_INCLUDE_DIRS}
${GLEW_INCLUDE_DIRS}
${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES} # TODO: currently required because of lm_optimizer.h. That should not be necessary.
)
add_test(libvis_cuda_test
libvis_cuda_test
Expand Down Expand Up @@ -539,14 +538,6 @@ target_link_libraries(libvis_test PRIVATE
Threads::Threads
libvis
)
if(CMAKE_CUDA_COMPILER)
target_link_libraries(libvis_test PRIVATE
CUDA::cublas # TODO: currently required because of lm_optimizer.h. That should not be necessary.
)
target_include_directories(libvis_test PRIVATE
${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES} # TODO: currently required because of lm_optimizer.h. That should not be necessary.
)
endif()
target_include_directories(libvis_test PRIVATE
${gtest_SOURCE_DIR}/include
#${gtest_SOURCE_DIR}
Expand Down

0 comments on commit b58bb22

Please sign in to comment.