1 Star 2 Fork 0

许凌瑞/yolov5-openvion

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
许凌瑞 提交于 2021-11-12 18:14 . first commit
cmake_minimum_required(VERSION 3.5)
project(detect_test)
set(CMAKE_CXX_STANDARD 14)
include_directories(
#OpenVINO推理引擎的头文件
/opt/intel/openvino_2021/deployment_tools/inference_engine/include/
/opt/intel/openvino_2021/deployment_tools/ngraph/include/
)
#查找必要的依赖包
find_package(OpenCV REQUIRED)
set(TBB_DIR /opt/intel/openvino_2021/deployment_tools/inference_engine/external/tbb/cmake)
find_package(TBB)
set(InferenceEngine_DIR "/opt/intel/openvino_2021/deployment_tools/inference_engine/share")
find_package(InferenceEngine)
set(ngraph_DIR "/opt/intel/openvino_2021/deployment_tools/ngraph")
find_package(ngraph REQUIRED)
set(ngraph_LIBRARIES "/opt/intel/openvino_2021/deployment_tools/ngraph/lib/libngraph.so")
set(ngraph_INCLUDE_DIRS "/opt/intel/openvino_2021/deployment_tools/ngraph/include/")
# 编译detector_bbox.so
add_library (detector_bbox SHARED ${CMAKE_CURRENT_SOURCE_DIR}/yolo_object_detection.cpp)
target_include_directories(detector_bbox
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include
PUBLIC ${OpenCV_INCLUDE_DIR}
PUBLIC ${InferenceEngine_INCLUDE_DIRS}
# PUBLIC ${ngraph_INCLUDE_DIRS}
)
target_link_libraries(detector_bbox
${OpenCV_LIBS}
${InferenceEngine_LIBRARIES}
${ngraph_LIBRARIES}
dl
)
add_executable(detect_test ConsoleApplication1.cpp) #run.cpp
target_link_libraries(detect_test
${OpenCV_LIBS}
detector_bbox
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xu-lingrui/yolov5-openvion.git
git@gitee.com:xu-lingrui/yolov5-openvion.git
xu-lingrui
yolov5-openvion
yolov5-openvion
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385