forked from Smorodov/Multitarget-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (40 loc) · 1.29 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required (VERSION 3.5)
project(AsyncDetector)
set(SOURCES
main.cpp
AsyncDetector.cpp
)
set(HEADERS
AsyncDetector.h
Queue.h
)
# ----------------------------------------------------------------------------
# добавляем include директории
# ----------------------------------------------------------------------------
INCLUDE_DIRECTORIES(
${PROJECT_SOURCE_DIR}/../src
${PROJECT_SOURCE_DIR}/../src/common
${PROJECT_SOURCE_DIR}/../src/Detector
${PROJECT_SOURCE_DIR}/../src/Detector/vibe_src
${PROJECT_SOURCE_DIR}/../src/Detector/Subsense
${PROJECT_SOURCE_DIR}/../src/Tracker
${PROJECT_SOURCE_DIR}/../src/Tracker/HungarianAlg
)
set(LIBS
${OpenCV_LIBS}
mtracking
mdetection
)
if (BUILD_YOLO_LIB)
if (MSVC)
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
set(BIT_SYSTEM x32)
else()
set(BIT_SYSTEM x64)
endif()
link_directories(${PROJECT_SOURCE_DIR}/../src/Detector/darknet/3rdparty/lib/${BIT_SYSTEM})
endif(MSVC)
add_definitions(-DBUILD_YOLO_LIB)
endif(BUILD_YOLO_LIB)
ADD_EXECUTABLE(${PROJECT_NAME} ${SOURCES} ${HEADERS})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIBS})