forked from Smorodov/Multitarget-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (49 loc) · 2.41 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
52
53
54
# ----------------------------------------------------------------------------
# ìèíèìàëüíàÿ âåðñèÿ CMake, ñïîñîáíàÿ ïåðåâàðèòü ýòîò ôàéë
# ----------------------------------------------------------------------------
cmake_minimum_required(VERSION 2.8)
project(MultitargetTracker)
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/build)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
# ----------------------------------------------------------------------------
# Ïðåäïîëàãàåì, ÷òî FindOpenCV.cmake ðàñïîëîæåí ïî àäðåñó CMAKE_MODULE_PATH.
# ----------------------------------------------------------------------------
FIND_PACKAGE(OpenCV)
# ----------------------------------------------------------------------------
# èùåì âñå .cpp è .h ôàéëû è äîáàâëÿåì èõ â íàø ïðîåêò
# ----------------------------------------------------------------------------
set(folder_source main.cpp
Detector/Detector.cpp
HungarianAlg/HungarianAlg.cpp
KalmanFilter/Kalman.cpp
vibe_src/BackgroundSubtract.cpp
vibe_src/VIBE.cpp
Tracker/Ctracker.cpp)
set(folder_header Detector/Detector.h
HungarianAlg/HungarianAlg.h
KalmanFilter/Kalman.h
vibe_src/BackgroundSubtract.h
vibe_src/VIBE.h
Tracker/Ctracker.h)
SOURCE_GROUP("Source Files" FILES ${folder_source})
SOURCE_GROUP("Header Files" FILES ${folder_header})
# ----------------------------------------------------------------------------
# ñîçäàåì ïðîåêò
# ----------------------------------------------------------------------------
ADD_EXECUTABLE(MultitargetTracker ${folder_source} ${folder_header})
# ----------------------------------------------------------------------------
# äîáàâëÿåì include äèðåêòîðèè
# ----------------------------------------------------------------------------
INCLUDE_DIRECTORIES(
${PROJECT_SOURCE_DIR}/Detector
${PROJECT_SOURCE_DIR}/HungarianAlg
${PROJECT_SOURCE_DIR}/KalmanFilter
${PROJECT_SOURCE_DIR}/Tracker
${PROJECT_SOURCE_DIR}/vibe_src)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
# ----------------------------------------------------------------------------
# è Lib-û opencv
# ----------------------------------------------------------------------------
TARGET_LINK_LIBRARIES(MultitargetTracker ${OpenCV_LIBS})