forked from puku0x/cvdrone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (37 loc) · 953 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
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.3)
project(cvdrone)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(OpenCV_INCLUDE_DIRS /usr/local/opt/opencv3/include)
set(CMAKE_EXE_LINKER_FLAGS -L/usr/local/opt/opencv3/lib)
set(SOURCE_FILES
samples/tracking.cpp
src/ardrone/ardrone.cpp
src/ardrone/ardrone.h
src/ardrone/command.cpp
src/ardrone/config.cpp
src/ardrone/navdata.cpp
src/ardrone/tcp.cpp
src/ardrone/udp.cpp
src/ardrone/uvlc.h
src/ardrone/version.cpp
src/ardrone/video.cpp)
include_directories(${OpenCV_INCLUDE_DIRS})
add_executable(cvdrone ${SOURCE_FILES})
target_link_libraries(cvdrone -lm -lpthread -lavutil -lavformat
-lavcodec
-lswscale
-lopencv_calib3d
-lopencv_core
-lopencv_features2d
-lopencv_flann
-lopencv_highgui
-lopencv_imgcodecs
-lopencv_imgproc
-lopencv_ml
-lopencv_objdetect
-lopencv_photo
-lopencv_stitching
-lopencv_superres
-lopencv_video
-lopencv_videoio
-lopencv_videostab)