if (WITH_SERVICE_BIN)
add_subdirectory (LayerManagerPlugins/Renderers/Graphic)
+ add_subdirectory (LayerManagerBase)
add_subdirectory (LayerManagerService)
set (BUILD_UTILS_LIB ON)
set (INSTALL_UTILS_LIB ON)
--- /dev/null
+############################################################################
+#
+# Copyright 2010-2012 BMW Car IT GmbH
+#
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+############################################################################
+
+cmake_minimum_required (VERSION 2.6)
+
+project(LayerManagerBase)
+
+set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xlinker -export-dynamic")
+
+if (WITH_DLT)
+ find_package(AutomotiveDlt REQUIRED)
+ include_directories(${DLT_INCLUDE_DIR})
+endif (WITH_DLT)
+
+include_directories(
+ include
+ ${CMAKE_SOURCE_DIR}/config
+ ${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
+ ${CMAKE_SOURCE_DIR}/LayerManagerCommands/include
+)
+
+set(SRC_FILES
+ src/Configuration.cpp
+ src/GraphicalObject.cpp
+ src/GraphicalSurface.cpp
+ src/InputManager.cpp
+ src/Layermanager.cpp
+ src/PluginBase.cpp
+ src/PluginManager.cpp
+ src/Scene.cpp
+ src/SignalHandler.cpp
+ src/Shader.cpp
+ src/ShaderProgram.cpp
+ src/ShaderProgramFactory.cpp
+ src/ShaderUniform.cpp
+)
+
+add_library(${PROJECT_NAME} STATIC ${SRC_FILES})
+
+add_dependencies(${PROJECT_NAME}
+ LayerManagerUtils
+)
+
+find_package (Threads)
+set(LIBS ${LIBS}
+ LayerManagerUtils
+ dl
+ ${CMAKE_THREAD_LIBS_INIT}
+ ${DLT_LIBRARY}
+ ${STATICALLY_LINKED_PLUGINS}
+)
+
+target_link_libraries(${PROJECT_NAME} ${LIBS})
+
+file(GLOB LM_INCLUDES include/*.h)
+
+install (FILES ${LM_INCLUDES} DESTINATION include/layermanager)
+
+
+if (WITH_TESTS)
+
+ find_package (Threads)
+
+ enable_testing()
+
+ set (CMAKE_CXX_FLAGS "")
+
+ add_executable(${PROJECT_NAME}_Test
+ tests/SceneTest.cpp
+ tests/LayermanagerTest.cpp
+ tests/InputManagerTest.cpp
+ tests/GraphicalObjectTest.cpp
+ tests/GraphicalGroupTest.cpp
+ tests/GraphicalSurfaceTest.cpp
+ tests/SurfaceTest.cpp
+ tests/LayerTest.cpp
+ tests/ShaderTest.cpp
+ tests/ShaderUniformTest.cpp
+ tests/ShaderProgramTest.cpp
+ tests/ShaderProgramFactoryTest.cpp
+ tests/RectangleTest.cpp
+ )
+
+ target_link_libraries(${PROJECT_NAME}_Test
+ ${LIBS}
+ LayerManagerBase
+ gtest
+ gmock
+ ${CMAKE_THREAD_LIBS_INIT}
+ )
+
+ add_test(${PROJECT_NAME} ${PROJECT_NAME}_Test)
+
+endif(WITH_TESTS)
+
+
+#=============================================================
+# configuration depending on system
+#=============================================================
+include(CheckFunctionExists)
+check_function_exists(backtrace_symbols HAVE_BACKTRACE)
+
+include(CheckIncludeFiles)
+check_include_files(execinfo.h HAVE_EXECINFO_H)
"include"
"${CMAKE_SOURCE_DIR}/config"
"${CMAKE_SOURCE_DIR}/LayerManagerPlugins/IpcModules/IpcModuleLoader/include"
- "${CMAKE_SOURCE_DIR}/LayerManagerService/include"
+ "${CMAKE_SOURCE_DIR}/LayerManagerBase/include"
)
add_library(ilmClient SHARED
include_directories(
include
${CMAKE_SOURCE_DIR}/config
- ${CMAKE_SOURCE_DIR}/LayerManagerService/include
+ ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
)
include_directories(
include
${CMAKE_SOURCE_DIR}/LayerManagerClient/ilmClient/include
- ${CMAKE_SOURCE_DIR}/LayerManagerService/include
+ ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
${CMAKE_SOURCE_DIR}/LayerManagerCommands/include
${CMAKE_SOURCE_DIR}/LayerManagerPlugins/IpcModules/IpcModuleLoader/include
include_directories(
include
${CMAKE_SOURCE_DIR}/LayerManagerClient/ilmClient/include
- ${CMAKE_SOURCE_DIR}/LayerManagerService/include
+ ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
)
"include"
"../Base/include"
"${PROJECT_SOURCE_DIR}/config"
- "${PROJECT_SOURCE_DIR}/LayerManagerService/include"
+ "${PROJECT_SOURCE_DIR}/LayerManagerBase/include"
"${PROJECT_SOURCE_DIR}/LayerManagerUtils/include"
)
include_directories ("include")
include_directories ("../../Base/include")
include_directories ("../../Graphic/include")
-include_directories ("${PROJECT_SOURCE_DIR}/config")
-include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerService/include")
-include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerUtils/include")
+include_directories ("${CMAKE_SOURCE_DIR}/config")
+include_directories ("${CMAKE_SOURCE_DIR}/LayerManagerBase/include")
+include_directories ("${CMAKE_SOURCE_DIR}/LayerManagerUtils/include")
file(GLOB SOURCES
src/X11GLXRenderer.cpp
../../Base/include
../../Graphic/include
${CMAKE_SOURCE_DIR}/config
- ${CMAKE_SOURCE_DIR}/LayerManagerService/include
+ ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
)
../../Base/include
../../Graphic/include
${CMAKE_SOURCE_DIR}/config
- ${CMAKE_SOURCE_DIR}/LayerManagerService/include
+ ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
${WAYLAND_SERVER_INCLUDE_DIR}
${DRM_INCLUDE_DIR}
../../Base/include
../../Graphic/include
${CMAKE_SOURCE_DIR}/config
- ${CMAKE_SOURCE_DIR}/LayerManagerService/include
+ ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
${X11_INCLUDE_DIR}
${EGL_INCLUDE_DIR}
include_directories(
include
${CMAKE_SOURCE_DIR}/LayerManagerCommands/include
- ${CMAKE_SOURCE_DIR}/LayerManagerService/include
+ ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
)
set(LIBS
cmake_minimum_required (VERSION 2.6)
-set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xlinker -export-dynamic")
-
-if (WITH_DLT)
- find_package(AutomotiveDlt REQUIRED)
- include_directories(${DLT_INCLUDE_DIR})
-endif (WITH_DLT)
+project(LayerManagerService)
include_directories(
- include
${CMAKE_SOURCE_DIR}/config
+ ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
- ${CMAKE_SOURCE_DIR}/LayerManagerCommands/include
)
-set(SRC_FILES
- src/Configuration.cpp
- src/GraphicalObject.cpp
- src/GraphicalSurface.cpp
- src/InputManager.cpp
- src/Layermanager.cpp
- src/PluginBase.cpp
- src/PluginManager.cpp
- src/Scene.cpp
- src/SignalHandler.cpp
- src/shader/Shader.cpp
- src/shader/ShaderProgram.cpp
- src/shader/ShaderProgramFactory.cpp
- src/shader/ShaderUniform.cpp
+set(LIBS
+ LayerManagerBase
)
-add_library(LayerManagerBase STATIC ${SRC_FILES})
-
-add_executable(LayerManagerService src/main.cpp)
-
-add_dependencies(LayerManagerService LayerManagerBase)
-
-add_dependencies(LayerManagerBase
- LayerManagerUtils
+set(SRC_FILES
+ src/main.cpp
)
-find_package (Threads)
-set(LIBS ${LIBS}
- LayerManagerUtils
- dl
- ${CMAKE_THREAD_LIBS_INIT}
- ${DLT_LIBRARY}
- ${STATICALLY_LINKED_PLUGINS}
-)
-
-target_link_libraries(LayerManagerBase ${LIBS})
-
-target_link_libraries(LayerManagerService LayerManagerBase)
-
-file(GLOB LM_INCLUDES include/*.h)
-
-install (TARGETS LayerManagerService DESTINATION bin)
-install (FILES ${LM_INCLUDES} DESTINATION include/layermanager)
-
-
-if (WITH_TESTS)
-
- find_package (Threads)
-
- enable_testing()
-
- set (CMAKE_CXX_FLAGS "")
-
- add_executable(LayerManagerService_Test
- tests/SceneTest.cpp
- tests/ScreenTest.cpp
- tests/LayermanagerTest.cpp
- tests/InputManagerTest.cpp
- tests/GraphicalObjectTest.cpp
- tests/GraphicalGroupTest.cpp
- tests/GraphicalSurfaceTest.cpp
- tests/SurfaceTest.cpp
- tests/LayerTest.cpp
- tests/ShaderTest.cpp
- tests/ShaderUniformTest.cpp
- tests/ShaderProgramTest.cpp
- tests/ShaderProgramFactoryTest.cpp
- tests/RectangleTest.cpp
- )
-
- target_link_libraries(LayerManagerService_Test
- ${LIBS}
- LayerManagerBase
- gtest
- gmock
- ${CMAKE_THREAD_LIBS_INIT}
- )
-
- add_test(LayerManagerService LayerManagerService_Test)
-
-endif(WITH_TESTS)
+add_executable(${PROJECT_NAME} ${SRC_FILES})
+add_dependencies(${PROJECT_NAME} ${LIBS})
-#=============================================================
-# configuration depending on system
-#=============================================================
-include(CheckFunctionExists)
-check_function_exists(backtrace_symbols HAVE_BACKTRACE)
+target_link_libraries(${PROJECT_NAME} ${LIBS})
-include(CheckIncludeFiles)
-check_include_files(execinfo.h HAVE_EXECINFO_H)
+install (TARGETS ${PROJECT_NAME} DESTINATION bin)