Skip to content

Commit

Permalink
updates for TRT10
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-nv committed Oct 16, 2024
1 parent e92f8d2 commit c038530
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 28 deletions.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,18 @@ add_subdirectory(python)


# set linker options
target_link_libraries(jetson-inference jetson-utils nvinfer nvinfer_plugin nvcaffe_parser)
target_link_libraries(jetson-inference jetson-utils nvinfer nvinfer_plugin)

if(CUDA_VERSION_MAJOR GREATER 9)
target_link_libraries(jetson-inference nvonnxparser)
endif()

if(CUDA_VERSION VERSION_LESS "12.6")
target_link_libraries(jetson-inference nvcaffe_parser)
else()
CUDA_ADD_CUBLAS_TO_TARGET(jetson-inference)
endif()

if(HAS_OPENCV)
message("-- linking jetson-inference with OpenCV " ${OpenCV_VERSION})
target_link_libraries(jetson-inference opencv_core opencv_calib3d)
Expand Down
Loading

0 comments on commit c038530

Please sign in to comment.