-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathCMakeLists.txt
66 lines (55 loc) · 1.32 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# CMake entry point
cmake_minimum_required (VERSION 2.8)
project ("openGLES 2.0 for Raspberry Pi tutorials")
SET(COMPILE_DEFINITIONS -Werror)
include_directories(
/opt/vc/include
/opt/vc/include/interface/vcos/pthreads
/opt/vc/include/interface/vmcs_host/linux
# ${CMAKE_SOURCE_DIR}/libs/glm/
${CMAKE_SOURCE_DIR}/libs/ilclient
${CMAKE_SOURCE_DIR}/common
)
link_directories(
${CMAKE_SOURCE_DIR}/libs/ilclient
/opt/vc/lib
)
set(RPi_LIBS
# Raspberry Pi - Broadcom
libbcm_host.so
libvcos.so
)
set(CAM_LIBS
# camera
libmmal_core.so
libmmal_util.so
libmmal_vc_client.so
)
set(GL_LIBS
# openGLES
GLESv2
EGL
)
set(ILC_LIBS
# ilclient
ilclient
openmaxil
)
# common library
add_subdirectory(common)
# subdirectories
add_subdirectory(encode)
add_subdirectory(encode_main)
add_subdirectory(encode_OGL)
add_subdirectory(playground)
add_subdirectory(tutorial01_first_screen)
add_subdirectory(tutorial02_red_triangle)
add_subdirectory(tutorial02a_modelspace)
add_subdirectory(tutorial03_matrices)
add_subdirectory(tutorial04_coloured_cube)
add_subdirectory(tutorial05_tex)
add_subdirectory(tutorial05_textured_cube)
add_subdirectory(tutorial05_gen_YUV_tex_disp)
add_subdirectory(tutorial06_tex_cam)
add_subdirectory(tutorial07_model_loading)
add_subdirectory(tutorial08_basic_shading)