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}
71 add_library(${PROJECT_NAME} STATIC ${SOURCES})
73 target_link_libraries(${PROJECT_NAME} ${LIBS})
75 add_dependencies(${PROJECT_NAME} ${LIBS})
77 #===========================================================================
79 #===========================================================================
80 install(TARGETS ${PROJECT_NAME}
83 install(FILES ${GRAPHIC_LIB_DIR}/include/GraphicSystems/BaseGraphicSystem.h
84 ${GRAPHIC_LIB_DIR}/include/GraphicSystems/GLESGraphicSystem.h
85 DESTINATION include/layermanager/graphic/GraphicSystems)
87 install(FILES ${GRAPHIC_LIB_DIR}/include/TextureBinders/ITextureBinder.h
88 ${GRAPHIC_LIB_DIR}/include/TextureBinders/X11Copy.h
89 ${GRAPHIC_LIB_DIR}/include/TextureBinders/X11CopyGLES.h
90 ${GRAPHIC_LIB_DIR}/include/TextureBinders/X11EglImage.h
91 DESTINATION include/layermanager/graphic/TextureBinders)
93 install(FILES ${GRAPHIC_LIB_DIR}/include/PlatformSurfaces/XPlatformSurface.h
94 ${GRAPHIC_LIB_DIR}/include/PlatformSurfaces/EglXPlatformSurface.h
95 DESTINATION include/layermanager/graphic/PlatformSurfaces)
97 install(FILES ${GRAPHIC_LIB_DIR}/include/WindowSystems/BaseWindowSystem.h
98 ${GRAPHIC_LIB_DIR}/include/WindowSystems/X11WindowSystem.h
99 DESTINATION include/layermanager/graphic/WindowSystems)
101 install(FILES ${RENDERERBASE_DIR}/include/BaseRenderer.h
102 ${RENDERERBASE_DIR}/include/RenderUtil.h
103 DESTINATION include/layermanager/graphic/Base)