forked from spmallick/learnopencv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
36 lines (19 loc) · 996 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
24
25
26
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 2.8.12)
PROJECT(week1)
######################## EDIT IF REQUIRED ####################
# ###Uncomment the line below and specify the path to OpenCV directory i.e. the path to the OpenCVConfig.cmake file. Check the examples given below.
#SET(OpenCV_DIR Enter-the-path-of-OpenCV-installation-on-your-system)
################### OpenCV_DIR Examples #####################
### MACOS : /usr/local/Cellar/opencv/3.3.1_1/share/OpenCV/
### UBUNTU : /usr/local/share/OpenCV/
### WINDOWS : C:\Users\yourname\Documents\opencv-3.3.1\build\install
##############################################################
################### ***DO NOT EDIT*** #####################
############# Common Instructions for all Users ############
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS})
MACRO(add_example name)
ADD_EXECUTABLE(${name} ${name}.cpp)
TARGET_LINK_LIBRARIES(${name} ${OpenCV_LIBS} )
ENDMACRO()
add_example(multiTracker)