CMakeList配置darknet, cuda, opencv笔记

cmake_minimum_required(VERSION 3.14)
project(Testopencv)

set(CMAKE_CXX_STANDARD 11)

# 指定头文件目录
include_directories(./)
include_directories(/root/darknet/include/)
include_directories(/usr/local/include/opencv4/)

# 指定静态和动态文件目录
link_directories(/root/darknet/)
link_directories(/usr/local/cuda-10.0/lib64/)

add_executable(Testopencv main.cpp improcess.cpp improcess.h ${OpenCV_HDRS})
find_package(OpenCV REQUIRED)
# 链接库文件
target_link_libraries(Testopencv
        darknet.so
        ${OpenCV_LIBS}
        libcudart.so.10.0)

CMakeList配置darknet, cuda, opencv笔记_第1张图片

 

你可能感兴趣的:(目标i检测,yolo)