-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.txt
28 lines (19 loc) · 1.21 KB
/
test.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 3.0.0)
project(yolo_ort)
set(ONNXRUNTIME_DIR /disk/223/person/huheng/tools/onnxruntime/onnxruntime/build/Linux/Release)
set(OpenCV_DIR /data/hh_workspace/opencv/opencv-4.5.4/build/installed/lib/cmake/opencv4)
find_package(OpenCV 4.5.4 REQUIRED)
include_directories("include/")
add_executable(yolo_ort
src/main.cpp
src/detector.cpp
src/utils.cpp)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
target_include_directories(yolo_ort PRIVATE "/disk/223/person/huheng/tools/onnxruntime/onnxruntime/include/onnxruntime/core/session" ${OpenCV_INCLUDE_DIRS})
target_compile_features(yolo_ort PRIVATE cxx_std_14)
target_link_libraries(yolo_ort ${OpenCV_LIBS})
if (UNIX)
target_link_libraries(yolo_ort "/disk/223/person/huheng/tools/onnxruntime/onnxruntime/build/Linux/Release/libonnxruntime.so")
endif(UNIX)
cmake -D WITH_TBB=ON -D WITH_EIGEN=ON -D OPENCV_GENERATE_PKGCONFIG=ON -D BUILD_DOCS=ON -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF -D WITH_OPENCL=OFF -D WITH_CUDA=OFF -D BUILD_opencv_gpu=OFF -D BUILD_opencv_gpuarithm=OFF -D BUILD_opencv_gpubgsegm=O -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..