@@ -18,15 +18,15 @@ find_package(catkin REQUIRED
18
18
am_rostest
19
19
)
20
20
21
- find_package (CUDA)
21
+ # find_package(CUDA)
22
22
23
- if (CUDA_FOUND)
24
- add_definitions (-DCUDA_FLAG)
25
- message ([STATUS ] "CUDA FOUND, am_super will be built with GPU monitoring" )
26
- SET (CUDA_NVCC_FLAGS "-arch=sm_62" CACHE STRING "nvcc flags" FORCE)
27
- SET (CUDA_VERBOSE_BUILD ON CACHE BOOL "nvcc verbose" FORCE)
28
- CUDA_ADD_LIBRARY(cuda_utility ${LIB_TYPE} src/cuda/cuda_utility.cu)
29
- endif (CUDA_FOUND)
23
+ # if(CUDA_FOUND)
24
+ # add_definitions(-DCUDA_FLAG)
25
+ # message([STATUS] "CUDA FOUND, am_super will be built with GPU monitoring")
26
+ # SET(CUDA_NVCC_FLAGS "-arch=sm_62" CACHE STRING "nvcc flags" FORCE)
27
+ # SET(CUDA_VERBOSE_BUILD ON CACHE BOOL "nvcc verbose" FORCE)
28
+ # CUDA_ADD_LIBRARY(cuda_utility ${LIB_TYPE} src/cuda/cuda_utility.cu)
29
+ # endif(CUDA_FOUND)
30
30
31
31
32
32
## System dependencies are found with CMake's conventions
@@ -134,13 +134,16 @@ add_library(super_lib
134
134
target_link_libraries (super_lib ${catkin_LIBRARIES} )
135
135
add_dependencies (super_lib ${catkin_EXPORTED_TARGETS} )
136
136
137
- if (CUDA_FOUND)
138
- add_executable (am_super ${am_super_cpp_files} ${cuda_cpp_files} )
139
- target_link_libraries (am_super ${catkin_LIBRARIES} super_lib cuda_utility)
140
- else ()
141
- add_executable (am_super ${am_super_cpp_files} )
142
- target_link_libraries (am_super ${catkin_LIBRARIES} super_lib)
143
- endif (CUDA_FOUND)
137
+ #if(CUDA_FOUND)
138
+ # add_executable(am_super ${am_super_cpp_files} ${cuda_cpp_files} )
139
+ # target_link_libraries(am_super ${catkin_LIBRARIES} super_lib cuda_utility)
140
+ #else()
141
+ # add_executable(am_super ${am_super_cpp_files})
142
+ # target_link_libraries(am_super ${catkin_LIBRARIES} super_lib)
143
+ #endif(CUDA_FOUND)
144
+
145
+ add_executable (am_super ${am_super_cpp_files} )
146
+ target_link_libraries (am_super ${catkin_LIBRARIES} super_lib)
144
147
add_dependencies (am_super ${catkin_EXPORTED_TARGETS} )
145
148
146
149
#############
0 commit comments