1 ############################################################################
3 # Copyright 2010-2012 BMW Car IT GmbH
4 # Copyright (C) 2011 DENSO CORPORATION and Robert Bosch Car Multimedia Gmbh
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 ############################################################################
21 cmake_minimum_required (VERSION 2.6)
22 project(LayerManagerGraphicGLESv2)
25 #===========================================================================
27 #===========================================================================
28 SET(RENDERERBASE_DIR ${CMAKE_SOURCE_DIR}/LayerManagerPlugins/Renderers/Base)
29 SET(GRAPHIC_LIB_DIR ${CMAKE_SOURCE_DIR}/LayerManagerPlugins/Renderers/Graphic)
31 #===========================================================================
33 #===========================================================================
34 find_package(X11 REQUIRED)
35 find_package(EGL REQUIRED)
36 find_package(GLESv2 REQUIRED)
40 ${GRAPHIC_LIB_DIR}/include
41 ${RENDERERBASE_DIR}/include
42 ${CMAKE_SOURCE_DIR}/config
43 ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
44 ${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
51 ${RENDERERBASE_DIR}/src/BaseRenderer.cpp
52 ${GRAPHIC_LIB_DIR}/src/GraphicSystems/GLESGraphicSystem.cpp
53 ${GRAPHIC_LIB_DIR}/src/WindowSystems/BaseWindowSystem.cpp
54 ${GRAPHIC_LIB_DIR}/src/WindowSystems/X11WindowSystem.cpp
55 ${GRAPHIC_LIB_DIR}/src/TextureBinders/X11Copy.cpp
56 ${GRAPHIC_LIB_DIR}/src/TextureBinders/X11CopyGLES.cpp
57 ${GRAPHIC_LIB_DIR}/src/TextureBinders/X11EglImage.cpp
63 ${CMAKE_THREAD_LIBS_INIT}
72 add_library(${PROJECT_NAME} STATIC ${SOURCES})
74 target_link_libraries(${PROJECT_NAME} ${LIBS})
76 add_dependencies(${PROJECT_NAME} ${LIBS})
78 #===========================================================================
80 #===========================================================================
81 install(TARGETS ${PROJECT_NAME}
84 install(FILES ${GRAPHIC_LIB_DIR}/include/GraphicSystems/BaseGraphicSystem.h
85 ${GRAPHIC_LIB_DIR}/include/GraphicSystems/GLESGraphicSystem.h
86 DESTINATION include/layermanager/graphic/GraphicSystems)
88 install(FILES ${GRAPHIC_LIB_DIR}/include/TextureBinders/ITextureBinder.h
89 ${GRAPHIC_LIB_DIR}/include/TextureBinders/X11Copy.h
90 ${GRAPHIC_LIB_DIR}/include/TextureBinders/X11CopyGLES.h
91 ${GRAPHIC_LIB_DIR}/include/TextureBinders/X11EglImage.h
92 DESTINATION include/layermanager/graphic/TextureBinders)
94 install(FILES ${GRAPHIC_LIB_DIR}/include/PlatformSurfaces/XPlatformSurface.h
95 ${GRAPHIC_LIB_DIR}/include/PlatformSurfaces/EglXPlatformSurface.h
96 DESTINATION include/layermanager/graphic/PlatformSurfaces)
98 install(FILES ${GRAPHIC_LIB_DIR}/include/WindowSystems/BaseWindowSystem.h
99 ${GRAPHIC_LIB_DIR}/include/WindowSystems/X11WindowSystem.h
100 DESTINATION include/layermanager/graphic/WindowSystems)
102 install(FILES ${RENDERERBASE_DIR}/include/BaseRenderer.h
103 ${RENDERERBASE_DIR}/include/RenderUtil.h
104 DESTINATION include/layermanager/graphic/Base)