LayerManagerBase: moved library to separate directory
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Wed, 12 Dec 2012 13:31:47 +0000 (05:31 -0800)
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Mon, 14 Jan 2013 08:34:16 +0000 (00:34 -0800)
LayerManagerBase library contains all base functionality of
LayerManagement like Scene, GraphicalObjects.

All improtant interfaces are defined by this package.

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
97 files changed:
CMakeLists.txt
LayerManagerBase/CMakeLists.txt [new file with mode: 0644]
LayerManagerBase/include/ApplicationReferenceList.h [moved from LayerManagerService/include/ApplicationReferenceList.h with 100% similarity]
LayerManagerBase/include/ApplicationReferenceMap.h [moved from LayerManagerService/include/ApplicationReferenceMap.h with 100% similarity]
LayerManagerBase/include/CommandList.h [moved from LayerManagerService/include/CommandList.h with 100% similarity]
LayerManagerBase/include/CommunicatorList.h [moved from LayerManagerService/include/CommunicatorList.h with 100% similarity]
LayerManagerBase/include/Configuration.h [moved from LayerManagerService/include/Configuration.h with 100% similarity]
LayerManagerBase/include/ExecutionType.h [moved from LayerManagerService/include/ExecutionType.h with 100% similarity]
LayerManagerBase/include/FileList.h [moved from LayerManagerService/include/FileList.h with 100% similarity]
LayerManagerBase/include/GraphicalGroup.h [moved from LayerManagerService/include/GraphicalGroup.h with 100% similarity]
LayerManagerBase/include/GraphicalObject.h [moved from LayerManagerService/include/GraphicalObject.h with 100% similarity]
LayerManagerBase/include/GraphicalSurface.h [moved from LayerManagerService/include/GraphicalSurface.h with 100% similarity]
LayerManagerBase/include/HealthMonitorList.h [moved from LayerManagerService/include/HealthMonitorList.h with 100% similarity]
LayerManagerBase/include/IApplicationReference.h [moved from LayerManagerService/include/IApplicationReference.h with 100% similarity]
LayerManagerBase/include/ICommand.h [moved from LayerManagerService/include/ICommand.h with 100% similarity]
LayerManagerBase/include/ICommandExecutor.h [moved from LayerManagerService/include/ICommandExecutor.h with 100% similarity]
LayerManagerBase/include/ICommunicator.h [moved from LayerManagerService/include/ICommunicator.h with 100% similarity]
LayerManagerBase/include/IHealthMonitor.h [moved from LayerManagerService/include/IHealthMonitor.h with 100% similarity]
LayerManagerBase/include/IPlugin.h [moved from LayerManagerService/include/IPlugin.h with 100% similarity]
LayerManagerBase/include/IRenderer.h [moved from LayerManagerService/include/IRenderer.h with 100% similarity]
LayerManagerBase/include/IScene.h [moved from LayerManagerService/include/IScene.h with 100% similarity]
LayerManagerBase/include/ISceneProvider.h [moved from LayerManagerService/include/ISceneProvider.h with 100% similarity]
LayerManagerBase/include/InputManager.h [moved from LayerManagerService/include/InputManager.h with 100% similarity]
LayerManagerBase/include/Layer.h [moved from LayerManagerService/include/Layer.h with 100% similarity]
LayerManagerBase/include/LayerCapabilities.h [moved from LayerManagerService/include/LayerCapabilities.h with 100% similarity]
LayerManagerBase/include/LayerGroup.h [moved from LayerManagerService/include/LayerGroup.h with 100% similarity]
LayerManagerBase/include/LayerGroupMap.h [moved from LayerManagerService/include/LayerGroupMap.h with 100% similarity]
LayerManagerBase/include/LayerList.h [moved from LayerManagerService/include/LayerList.h with 100% similarity]
LayerManagerBase/include/LayerMap.h [moved from LayerManagerService/include/LayerMap.h with 100% similarity]
LayerManagerBase/include/LayerType.h [moved from LayerManagerService/include/LayerType.h with 100% similarity]
LayerManagerBase/include/Layermanager.h [moved from LayerManagerService/include/Layermanager.h with 100% similarity]
LayerManagerBase/include/NotificationQueue.h [moved from LayerManagerService/include/NotificationQueue.h with 100% similarity]
LayerManagerBase/include/ObjectType.h [moved from LayerManagerService/include/ObjectType.h with 100% similarity]
LayerManagerBase/include/OptimizationType.h [moved from LayerManagerService/include/OptimizationType.h with 100% similarity]
LayerManagerBase/include/OrientationType.h [moved from LayerManagerService/include/OrientationType.h with 100% similarity]
LayerManagerBase/include/PixelFormat.h [moved from LayerManagerService/include/PixelFormat.h with 100% similarity]
LayerManagerBase/include/PlatformSurface.h [moved from LayerManagerService/include/PlatformSurface.h with 100% similarity]
LayerManagerBase/include/PluginBase.h [moved from LayerManagerService/include/PluginBase.h with 100% similarity]
LayerManagerBase/include/PluginList.h [moved from LayerManagerService/include/PluginList.h with 100% similarity]
LayerManagerBase/include/PluginManager.h [moved from LayerManagerService/include/PluginManager.h with 100% similarity]
LayerManagerBase/include/Rectangle.h [moved from LayerManagerService/include/Rectangle.h with 100% similarity]
LayerManagerBase/include/RendererList.h [moved from LayerManagerService/include/RendererList.h with 100% similarity]
LayerManagerBase/include/Scene.h [moved from LayerManagerService/include/Scene.h with 100% similarity]
LayerManagerBase/include/SceneProviderList.h [moved from LayerManagerService/include/SceneProviderList.h with 100% similarity]
LayerManagerBase/include/ScreenShotType.h [moved from LayerManagerService/include/ScreenShotType.h with 100% similarity]
LayerManagerBase/include/Shader.h [moved from LayerManagerService/include/Shader.h with 100% similarity]
LayerManagerBase/include/ShaderMap.h [moved from LayerManagerService/include/ShaderMap.h with 100% similarity]
LayerManagerBase/include/ShaderProgram.h [moved from LayerManagerService/include/ShaderProgram.h with 100% similarity]
LayerManagerBase/include/ShaderProgramFactory.h [moved from LayerManagerService/include/ShaderProgramFactory.h with 100% similarity]
LayerManagerBase/include/ShaderProgramList.h [moved from LayerManagerService/include/ShaderProgramList.h with 100% similarity]
LayerManagerBase/include/ShaderUniform.h [moved from LayerManagerService/include/ShaderUniform.h with 100% similarity]
LayerManagerBase/include/SignalHandler.h [moved from LayerManagerService/include/SignalHandler.h with 100% similarity]
LayerManagerBase/include/Surface.h [moved from LayerManagerService/include/Surface.h with 100% similarity]
LayerManagerBase/include/SurfaceGroup.h [moved from LayerManagerService/include/SurfaceGroup.h with 100% similarity]
LayerManagerBase/include/SurfaceGroupMap.h [moved from LayerManagerService/include/SurfaceGroupMap.h with 100% similarity]
LayerManagerBase/include/SurfaceList.h [moved from LayerManagerService/include/SurfaceList.h with 100% similarity]
LayerManagerBase/include/SurfaceMap.h [moved from LayerManagerService/include/SurfaceMap.h with 100% similarity]
LayerManagerBase/include/UniformMap.h [moved from LayerManagerService/include/UniformMap.h with 100% similarity]
LayerManagerBase/include/Vector2.h [moved from LayerManagerService/include/Vector2.h with 100% similarity]
LayerManagerBase/include/ViewportTransform.h [moved from LayerManagerService/include/ViewportTransform.h with 100% similarity]
LayerManagerBase/src/Configuration.cpp [moved from LayerManagerService/src/Configuration.cpp with 100% similarity]
LayerManagerBase/src/GraphicalObject.cpp [moved from LayerManagerService/src/GraphicalObject.cpp with 100% similarity]
LayerManagerBase/src/GraphicalSurface.cpp [moved from LayerManagerService/src/GraphicalSurface.cpp with 100% similarity]
LayerManagerBase/src/InputManager.cpp [moved from LayerManagerService/src/InputManager.cpp with 100% similarity]
LayerManagerBase/src/Layermanager.cpp [moved from LayerManagerService/src/Layermanager.cpp with 100% similarity]
LayerManagerBase/src/PluginBase.cpp [moved from LayerManagerService/src/PluginBase.cpp with 100% similarity]
LayerManagerBase/src/PluginManager.cpp [moved from LayerManagerService/src/PluginManager.cpp with 100% similarity]
LayerManagerBase/src/Scene.cpp [moved from LayerManagerService/src/Scene.cpp with 100% similarity]
LayerManagerBase/src/Shader.cpp [moved from LayerManagerService/src/shader/Shader.cpp with 100% similarity]
LayerManagerBase/src/ShaderProgram.cpp [moved from LayerManagerService/src/shader/ShaderProgram.cpp with 100% similarity]
LayerManagerBase/src/ShaderProgramFactory.cpp [moved from LayerManagerService/src/shader/ShaderProgramFactory.cpp with 100% similarity]
LayerManagerBase/src/ShaderUniform.cpp [moved from LayerManagerService/src/shader/ShaderUniform.cpp with 100% similarity]
LayerManagerBase/src/SignalHandler.cpp [moved from LayerManagerService/src/SignalHandler.cpp with 100% similarity]
LayerManagerBase/tests/GraphicalGroupTest.cpp [moved from LayerManagerService/tests/GraphicalGroupTest.cpp with 100% similarity]
LayerManagerBase/tests/GraphicalObjectTest.cpp [moved from LayerManagerService/tests/GraphicalObjectTest.cpp with 100% similarity]
LayerManagerBase/tests/GraphicalSurfaceTest.cpp [moved from LayerManagerService/tests/GraphicalSurfaceTest.cpp with 100% similarity]
LayerManagerBase/tests/InputManagerTest.cpp [moved from LayerManagerService/tests/InputManagerTest.cpp with 100% similarity]
LayerManagerBase/tests/LayerTest.cpp [moved from LayerManagerService/tests/LayerTest.cpp with 100% similarity]
LayerManagerBase/tests/LayermanagerTest.cpp [moved from LayerManagerService/tests/LayermanagerTest.cpp with 100% similarity]
LayerManagerBase/tests/RectangleTest.cpp [moved from LayerManagerService/tests/RectangleTest.cpp with 100% similarity]
LayerManagerBase/tests/SceneTest.cpp [moved from LayerManagerService/tests/SceneTest.cpp with 100% similarity]
LayerManagerBase/tests/ShaderProgramFactoryTest.cpp [moved from LayerManagerService/tests/ShaderProgramFactoryTest.cpp with 100% similarity]
LayerManagerBase/tests/ShaderProgramTest.cpp [moved from LayerManagerService/tests/ShaderProgramTest.cpp with 100% similarity]
LayerManagerBase/tests/ShaderTest.cpp [moved from LayerManagerService/tests/ShaderTest.cpp with 100% similarity]
LayerManagerBase/tests/ShaderUniformTest.cpp [moved from LayerManagerService/tests/ShaderUniformTest.cpp with 100% similarity]
LayerManagerBase/tests/SurfaceTest.cpp [moved from LayerManagerService/tests/SurfaceTest.cpp with 100% similarity]
LayerManagerClient/ilmClient/CMakeLists.txt
LayerManagerCommands/CMakeLists.txt
LayerManagerPlugins/Communicators/GenericCommunicator/CMakeLists.txt
LayerManagerPlugins/HealthMonitor/SystemdHealthMonitor/CMakeLists.txt
LayerManagerPlugins/Renderers/Graphic/CMakeLists.txt
LayerManagerPlugins/Renderers/Platform/GLXRenderer/CMakeLists.txt
LayerManagerPlugins/Renderers/Platform/TextRenderer/CMakeLists.txt
LayerManagerPlugins/Renderers/Platform/WaylandGLESRenderer/CMakeLists.txt
LayerManagerPlugins/Renderers/Platform/X11GLESRenderer/CMakeLists.txt
LayerManagerPlugins/SceneProvider/ExampleSceneProvider/CMakeLists.txt
LayerManagerService/CMakeLists.txt

index 0b86887..43aa8c2 100644 (file)
@@ -202,6 +202,7 @@ if (WITH_SERVICE_BIN OR WITH_CLIENT_LIB)
 
     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)
diff --git a/LayerManagerBase/CMakeLists.txt b/LayerManagerBase/CMakeLists.txt
new file mode 100644 (file)
index 0000000..26f51a7
--- /dev/null
@@ -0,0 +1,120 @@
+############################################################################
+# 
+# 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)
index e9f46f5..fc85062 100644 (file)
@@ -25,7 +25,7 @@ include_directories(
     "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
index f46ca35..aea7774 100644 (file)
@@ -24,7 +24,7 @@ project(LayerManagerCommands)
 include_directories(
     include
     ${CMAKE_SOURCE_DIR}/config
-    ${CMAKE_SOURCE_DIR}/LayerManagerService/include
+    ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
     ${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
 )
 
index 1d63f88..9a246b0 100644 (file)
@@ -27,7 +27,7 @@ project(GenericCommunicator)
 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
index 95a1213..e7eee85 100644 (file)
@@ -27,7 +27,7 @@ project(SystemdHealthMonitor)
 include_directories(
     include
     ${CMAKE_SOURCE_DIR}/LayerManagerClient/ilmClient/include
-    ${CMAKE_SOURCE_DIR}/LayerManagerService/include
+    ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
     ${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
 )
 
index fcb857a..53de54d 100644 (file)
@@ -28,7 +28,7 @@ include_directories(
     "include"
     "../Base/include"
     "${PROJECT_SOURCE_DIR}/config"
-    "${PROJECT_SOURCE_DIR}/LayerManagerService/include"
+    "${PROJECT_SOURCE_DIR}/LayerManagerBase/include"
     "${PROJECT_SOURCE_DIR}/LayerManagerUtils/include"
 )
 
index 9df8337..0c1a8c1 100644 (file)
@@ -22,9 +22,9 @@ cmake_minimum_required (VERSION 2.6)
 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 
index 414cc50..054f46d 100644 (file)
@@ -30,7 +30,7 @@ include_directories(
     ../../Base/include
     ../../Graphic/include
     ${CMAKE_SOURCE_DIR}/config
-    ${CMAKE_SOURCE_DIR}/LayerManagerService/include
+    ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
     ${CMAKE_SOURCE_DIR}/LayerManagerUtils/include
 )
 
index 4137861..32933c6 100644 (file)
@@ -37,7 +37,7 @@ include_directories(
     ../../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}
index 3c80c8a..3f478cf 100644 (file)
@@ -37,7 +37,7 @@ include_directories(
     ../../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}
index 3a363c7..ea0965c 100644 (file)
@@ -27,7 +27,7 @@ project(ExampleSceneProvider)
 include_directories(
     include
     ${CMAKE_SOURCE_DIR}/LayerManagerCommands/include
-    ${CMAKE_SOURCE_DIR}/LayerManagerService/include
+    ${CMAKE_SOURCE_DIR}/LayerManagerBase/include
 )
 
 set(LIBS
index 5777a37..4678070 100644 (file)
 
 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)