Skip to content

Commit e254c8b

Browse files
authored
Update CMakeLists.txt
1 parent 3ecb206 commit e254c8b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,12 @@ link_directories(
7878
)
7979

8080
##### cuda_plane_line_odometry #####
81-
include_directories(/usr/local/cuda/include) # for "#include <math_functions.hpp>"
82-
include_directories(/usr/local/cuda/include/crt) # for "#include <math_functions.hpp>"
81+
find_package(CUDA REQUIRED)
82+
message(STATUS "CUDA_LIBRARIES : ${CUDA_LIBRARIES}")
83+
message(STATUS "CUDA_cublas_LIBRARY : ${CUDA_cublas_LIBRARY}")
84+
message(STATUS "CUDA_cusolver_LIBRARY : ${CUDA_cusolver_LIBRARY}")
85+
message(STATUS "CUDA_INCLUDE_DIRS : ${CUDA_INCLUDE_DIRS}")
86+
include_directories(${CUDA_INCLUDE_DIRS})
8387
add_subdirectory(src/cuda_plane_line_odometry)
8488
##### cuda_plane_line_odometry #####
8589

0 commit comments

Comments
 (0)