-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (37 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
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required (VERSION 2.8)
project (Fleye)
# various usage samples
#
# ./Fleye/fleye -v -ex fixedfps -res 1280x960 -geom 640x480+32+32 -script wincoord
# optimal resolution/performance
# ./Fleye/fleye -ex fixedfps -res 1280x960 -geom 1024x768 -v
# ./Fleye/fleye -ex fixedfps -res 1280x960 -geom 640x480 -script camera-rgba
# sudo ./Fleye/fleye -awb auto -res 512x512 -geom 512x512 -script panTiltCalibration
# sudo fleye -ex fixedfps -res 960x720 -geom 960x720 -script objectfollower
# predefine location of jsoncpp include and libs.
# needs to install libjsoncpp-dev package
set( JsonCpp_FOUND 1 )
set( JsonCpp_INCLUDE_DIRS "/usr/include/jsoncpp" )
set( JsonCpp_LIBRARIES "/usr/lib/libjsoncpp.so" )
# Raspberry Pi VideoCore HW Abstraction Layer
SET(VCROOT "/opt/vc")
SET(VCINC "${VCROOT}/include")
SET(VCLIB "${VCROOT}/lib")
SET(MMAL_LIBS mmal_core mmal_util mmal_vc_client)
# OpenGL ES headers from userland code
SET(GL_INC_DIR ${VCINC} ${VCINC}/interface/vcos/pthreads)
SET(GL_LIB_DIR "${VCLIB}")
# Resource directories
SET(GLSL_SHADER_DIR ${CMAKE_INSTALL_PREFIX}/share/fleye/shaders)
SET(SCRIPTS_DIR ${CMAKE_INSTALL_PREFIX}/share/fleye/scripts)
SET(PLUGINS_DIR ${CMAKE_INSTALL_PREFIX}/lib/fleye/plugins)
SET(DATA_DIR ${CMAKE_INSTALL_PREFIX}/share/fleye/data)
add_subdirectory(thirdparty)
add_subdirectory(plugins)
add_subdirectory(scripts)
add_subdirectory(shaders)
add_subdirectory(RaspiCam)
add_subdirectory(TestCamera)
add_subdirectory(gpio)
add_subdirectory(data)
add_subdirectory(Fleye)