LayerManagerExamples: fixed gcc 4.7.1 warnings and errors
[profile/ivi/layer-management.git] / LayerManagerExamples / EGLX11MockNavigation / CMakeLists.txt
1 ############################################################################
2
3 # Copyright 2010-2012 BMW Car IT GmbH 
4
5
6 # Licensed under the Apache License, Version 2.0 (the "License"); 
7 # you may not use this file except in compliance with the License. 
8 # You may obtain a copy of the License at 
9 #
10 #               http://www.apache.org/licenses/LICENSE-2.0 
11 #
12 # Unless required by applicable law or agreed to in writing, software 
13 # distributed under the License is distributed on an "AS IS" BASIS, 
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
15 # See the License for the specific language governing permissions and 
16 # limitations under the License.
17 #
18 ############################################################################
19
20 cmake_minimum_required (VERSION 2.6)
21
22 find_package(GLESv2 REQUIRED)
23 find_package(EGL REQUIRED)
24 find_package(X11 REQUIRED)
25
26 include_directories(
27     ${GLESv2_INCLUDE_DIR}
28     ${EGL_INCLUDE_DIR}
29     ${X11_INCLUDE_DIR}
30     "include"
31     "../../LayerManagerClient/ilmClient/include"
32     "../LayerSceneDescriptionExample/include"
33     "../../LayerManagerUtils/include"
34 )
35
36 set (HEADER_FILES
37
38         include/Camera.h
39         include/Car.h
40     include/Argument.h
41         include/OpenGLES2App.h
42         include/Ground.h
43         include/House.h
44         include/IRenderable.h
45         include/IUpdateable.h
46         include/MockNavi.h
47         include/Street.h
48         include/ShaderBase.h
49         include/ShaderLighting.h
50 )
51
52 set (SRC_FILES
53
54         src/Camera.cpp
55         src/Car.cpp
56     src/Argument.cpp
57         src/OpenGLES2App.cpp
58         src/Ground.cpp
59         src/House.cpp
60         src/MockNavi.cpp
61         src/Street.cpp
62         src/ShaderBase.cpp
63         src/ShaderLighting.cpp
64         src/main.cpp
65 )
66
67 add_executable(EGLX11MockNavigation
68     ${SRC_FILES}
69     ${HEADER_FILES}
70 )
71
72 add_dependencies(EGLX11MockNavigation
73     ilmClient
74     EGLX11MockNavigation LayerManagerUtils
75 )
76
77 set(LIBS
78         ${LIBS}
79         ${GLESv2_LIBRARIES}
80         ${X11_LIBRARIES}
81         ${EGL_LIBRARY}
82         LayerManagerUtils
83         ilmClient
84 )
85
86 target_link_libraries(EGLX11MockNavigation ${LIBS})
87
88 install (TARGETS EGLX11MockNavigation DESTINATION bin)