We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dd0b1d commit 2550ecdCopy full SHA for 2550ecd
1 file changed
yolox_ros_cpp/yolox_cpp/CMakeLists.txt
@@ -46,14 +46,16 @@ endif()
46
47
if(YOLOX_USE_TENSORRT)
48
find_package(CUDA REQUIRED)
49
- find_library(NVINFER NAMES nvinfer REQUIRED)
50
- find_library(NVINFERPLUGIN NAMES nvinfer_plugin REQUIRED)
51
- find_library(NVPARSERS NAMES nvparsers REQUIRED)
52
- find_library(NVONNXPARSER NAMES nvonnxparser REQUIRED)
+ if (NOT CUDA_TOOLKIT_ROOT_DIR)
+ set(CUDA_TOOLKIT_ROOT_DIR /usr/local/cuda)
+ endif()
+ find_path(TENSORRT_INCLUDE_DIR NvInfer.h
53
+ HINTS ${TENSORRT_ROOT} ${CUDA_TOOLKIT_ROOT_DIR}
54
+ PATH_SUFFIXES include)
55
56
set(ENABLE_TENSORRT ON)
57
set(TARGET_SRC src/yolox_tensorrt.cpp)
- set(TARGET_LIBS nvinfer nvinfer_plugin nvparsers nvonnxparser)
58
+ set(TARGET_LIBS nvinfer nvinfer_plugin)
59
set(TARGET_DPENDENCIES CUDA)
60
endif()
61
0 commit comments