From 1199fa23ce45002ef8a7d0777b246b86049338b0 Mon Sep 17 00:00:00 2001 From: cesarandreslopez Date: Mon, 17 Aug 2020 12:22:15 +0400 Subject: [PATCH] Added Target_link_libraries for myplugins Based on @philipp-schmidt fix on his repository, https://github.com/wang-xinyu/tensorrtx/issues/139#issuecomment-674698203 I've added the link libraries to make sure that the plugin importation works well in Python TensorRT API. The same will probably have to be done for all other implementations in this repository. --- yolov5/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/yolov5/CMakeLists.txt b/yolov5/CMakeLists.txt index 8ee209e..2d075cc 100644 --- a/yolov5/CMakeLists.txt +++ b/yolov5/CMakeLists.txt @@ -36,6 +36,7 @@ target_link_libraries(yolov5 nvinfer) target_link_libraries(yolov5 cudart) target_link_libraries(yolov5 myplugins) target_link_libraries(yolov5 ${OpenCV_LIBS}) +target_link_libraries(myplugins nvinfer cudart) add_definitions(-O2 -pthread)