forked from Smorodov/Multitarget-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (28 loc) · 1.62 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
# ----------------------------------------------------------------------------
# ìèíèìàëüíàÿ âåðñèÿ CMake, ñïîñîáíàÿ ïåðåâàðèòü ýòîò ôàéë
# ----------------------------------------------------------------------------
cmake_minimum_required(VERSION 2.8)
# ----------------------------------------------------------------------------
# Ïðåäïîëàãàåì, ÷òî FindOpenCV.cmake ðàñïîëîæåí ïî àäðåñó CMAKE_MODULE_PATH.
# ----------------------------------------------------------------------------
FIND_PACKAGE(OpenCV)
# ----------------------------------------------------------------------------
# èùåì âñå .cpp è .h ôàéëû è äîáàâëÿåì èõ â íàø ïðîåêò
# ----------------------------------------------------------------------------
FILE(GLOB folder_source *.cpp)
FILE(GLOB folder_header *.h)
SOURCE_GROUP("Source Files" FILES ${folder_source})
SOURCE_GROUP("Header Files" FILES ${folder_header})
# ----------------------------------------------------------------------------
# ñîçäàåì ïðîåêò
# ----------------------------------------------------------------------------
ADD_EXECUTABLE(ObjectTracker ${folder_source} ${folder_header})
# ----------------------------------------------------------------------------
# äîáàâëÿåì include äèðåêòîðèè
# ----------------------------------------------------------------------------
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
# ----------------------------------------------------------------------------
# è Lib-û opencv
# ----------------------------------------------------------------------------
TARGET_LINK_LIBRARIES(ObjectTracker ${OpenCV_LIBS})