set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
+# generate cmake configuration header file, includes information on the
+# project configuration, compiler settings, ...
+message(STATUS "Generating config.h header file with build system configuration.")
+configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/config/config.h.cmake
+ ${CMAKE_CURRENT_SOURCE_DIR}/config/config.h
+)
+
if (WITH_DESKTOP)
set (WITH_GLX_LIB ON CACHE STRING "" FORCE)
endif(WITH_DESKTOP)
add_subdirectory (3rdParty)
add_subdirectory (LayerManagerPlugins/Communicators/DBUSCommunicator)
add_subdirectory (LayerManagerClient/ilmClient)
-add_subdirectory (LayerManagerUtils)
add_subdirectory (LayerManagerCommands)
add_subdirectory (LayerManagerService)
+add_subdirectory (LayerManagerUtils)
if (WITH_GLESv2_LIB OR WITH_GLX_LIB)
add_subdirectory (LayerManagerPlugins/Renderers/Graphic)
cmake_minimum_required (VERSION 2.6)
include_directories ("include")
+include_directories ("${PROJECT_SOURCE_DIR}/config")
include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerService/include")
include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerUtils/include")
link_directories ("${PROJECT_SOURCE_DIR}/LayerManagerUtils/bin")
cmake_minimum_required (VERSION 2.6)
include_directories ("include")
+include_directories ("${PROJECT_SOURCE_DIR}/config")
include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerService/include")
include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerUtils/include")
include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerCommands/include")
include_directories ("include")
include_directories ("../Base/include")
-
+include_directories ("${PROJECT_SOURCE_DIR}/config")
include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerService/include")
link_directories ("${PROJECT_SOURCE_DIR}/LayerManagerService/bin")
include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerUtils/include")
#include <X11/Xutil.h>
#include "Log.h"
#include "ScreenShotType.h"
-#include "config.h"
typedef XVisualInfo* (*GetVisualInfoFunction)(Display *dpy);
****************************************************************************/
#include "WindowSystems/X11WindowSystem.h"
+#include "config.h"
#include "Log.h"
#include "Layer.h"
#include <time.h>
include_directories ("include")
include_directories ("../../Base/include")
include_directories ("../../Graphic/include")
-
+include_directories ("${PROJECT_SOURCE_DIR}/config")
include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerService/include")
link_directories ("${PROJECT_SOURCE_DIR}/LayerManagerService/bin")
include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerUtils/include")
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)
include_directories ("include")
+include_directories ("${PROJECT_SOURCE_DIR}/config")
include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerUtils/include")
include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerCommands/include")
link_directories ("${PROJECT_SOURCE_DIR}/LayerManagerUtils/bin")
link_directories ("${PROJECT_SOURCE_DIR}/LayerManagerCommands")
-# generate cmake configuration header file, includes information on the
-# project configuration, compiler settings, ...
-message(STATUS "Generating config.h header file with build system configuration.")
-configure_file(
- ${CMAKE_CURRENT_SOURCE_DIR}/include/config.h.cmake
- ${CMAKE_CURRENT_SOURCE_DIR}/include/config.h
-)
-
file(GLOB LM_SOURCES src/*.cpp src/shader/*.cpp)
file(GLOB LM_INCLUDES include/*.h)
-add_executable(LayerManagerService ${LM_SOURCES} ${LM_INCLUDES} include/config.h)
+add_executable(LayerManagerService ${LM_SOURCES} ${LM_INCLUDES} ${PROJECT_SOURCE_DIR}/config/config.h)
add_dependencies(LayerManagerService LayerManagerUtils)
add_dependencies(LayerManagerService LayerManagerCommands)
dl
${CMAKE_THREAD_LIBS_INIT}
${DLT_LIBRARY})
+
target_link_libraries(LayerManagerService ${LIBS})
install (TARGETS LayerManagerService DESTINATION bin)
cmake_minimum_required (VERSION 2.6)
include_directories ("include")
-include_directories ("${PROJECT_SOURCE_DIR}/LayerManagerService/include")
+include_directories ("${PROJECT_SOURCE_DIR}/config")
if (WITH_DLT)
find_package(AutomotiveDlt REQUIRED)
include_directories(${DLT_INCLUDE_DIR})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
add_library(LayerManagerUtils STATIC src/Bitmap.cpp src/IlmMatrix.cpp src/Log.cpp src/LogMessageBuffer.cpp)
-
install (FILES include/Log.h include/LogMessageBuffer.h include/IlmMatrix.h include/Bitmap.h DESTINATION include/layermanager)
install (TARGETS LayerManagerUtils ARCHIVE DESTINATION lib/layermanager/static)