-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
24 lines (18 loc) · 903 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required(VERSION 3.0.0)
project(VA)
find_package(OpenCV REQUIRED)
include_directories("include/")
add_executable(VA main.cpp detector.cpp HungarianAlg.cpp
Kalman.cpp Multitracker.cpp yolo_utils.cpp Track.cpp Display.cpp SpeedEstimator.cpp
Intersection.cpp MultiCams.cpp)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(ONNXRUNTIME_ROOT_PATH /home/iaitech/onnxruntime)
set(ONNXRUNTIME_INCLUDE_DIRS ${ONNXRUNTIME_ROOT_PATH}/include/onnxruntime
${ONNXRUNTIME_ROOT_PATH}/onnxruntime
${ONNXRUNTIME_ROOT_PATH}/include/onnxruntime/core/session/)
set(ONNXRUNTIME_LIB ${ONNXRUNTIME_ROOT_PATH}/build/Linux/Release/libonnxruntime.so)
include_directories(${ONNXRUNTIME_INCLUDE_DIRS})
target_link_libraries(VA ${ONNXRUNTIME_LIB})
target_compile_features(VA PRIVATE cxx_std_14)
target_link_libraries(VA ${OpenCV_LIBS})