forked from sodnpoo/rpi-mmal-opencv-modetect
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
22 lines (14 loc) · 820 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cmake_minimum_required(VERSION 2.8)
SET(COMPILE_DEFINITIONS -Werror)
SET(CMAKE_C_FLAGS "-lpthread -lrt -lm -lfreetype" ) # Added to allow compilation under 2014-09-09-wheezy-raspbian.img
include_directories(/opt/vc/include)
include_directories(/opt/vc/include/interface/vcos/pthreads)
include_directories(/opt/vc/include/interface/vmcs_host)
include_directories(/opt/vc/include/interface/vmcs_host/linux)
include_directories(/home/pi/src/raspberrypi/userland)
include_directories(/opt/vc/src/hello_pi/libs/vgfont)
link_directories(/opt/vc/lib)
link_directories(/opt/vc/src/hello_pi/libs/vgfont)
add_executable(mmal_opencv_modect opencv_modect.c)
find_package( OpenCV REQUIRED )
target_link_libraries(mmal_opencv_modect mmal_core mmal_util mmal_vc_client vcos bcm_host cairo ${OpenCV_LIBS} vgfont openmaxil EGL)