-
Notifications
You must be signed in to change notification settings - Fork 42
/
CMakeLists.txt
27 lines (19 loc) · 1.09 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
cmake_minimum_required(VERSION 2.8)
SET(COMPILE_DEFINITIONS -Werror)
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(mmaldemo main.c)
add_executable(mmal_buffer_demo buffer_demo.c)
add_executable(mmal_opencv_demo opencv_demo.c)
add_executable(mmal_video_record video_record.c)
find_package( OpenCV REQUIRED )
target_link_libraries(mmaldemo mmal_core mmal_util mmal_vc_client vcos bcm_host)
target_link_libraries(mmal_buffer_demo mmal_core mmal_util mmal_vc_client vcos bcm_host rt)
target_link_libraries(mmal_opencv_demo mmal_core mmal_util mmal_vc_client vcos bcm_host ${OpenCV_LIBS} vgfont openmaxil EGL pthread rt m freetype)
target_link_libraries(mmal_video_record mmal_core mmal_util mmal_vc_client vcos bcm_host cairo rt)