-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
34 lines (25 loc) · 1.48 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
29
30
31
32
33
34
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/gpio/wiringPi/wiringPi)
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)
link_directories(/home/pi/gpio/wiringPi/devLib)
#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)
add_executable(SAM_demo SAM_demo.c)
add_executable(SAM_rec SAM_rec.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)
#target_link_libraries(mmal_opencv_demo mmal_core mmal_util mmal_vc_client vcos bcm_host ${OpenCV_LIBS} vgfont openmaxil EGL)
target_link_libraries(SAM_demo mmal_core mmal_util mmal_vc_client vcos bcm_host ${OpenCV_LIBS} vgfont openmaxil EGL wiringPi)
target_link_libraries(SAM_rec mmal_core mmal_util mmal_vc_client vcos bcm_host ${OpenCV_LIBS} vgfont openmaxil EGL wiringPi)
#target_link_libraries(mmal_video_record mmal_core mmal_util mmal_vc_client vcos bcm_host cairo)