#
############################################################################
-# set default compiler flags for 3rdParty code
-set (CMAKE_C_FLAGS "")
-set (CMAKE_CXX_FLAGS "")
+project(gmock)
+project_Type(3RDPARTY)
# include base path to 3rdParty code
include_directories ("..")
# build unit test frameworks, if tests are enabled
-add_library(gmock STATIC gmock-gtest-all.cc gmock_main.cc)
+add_library(${PROJECT_NAME} STATIC gmock-gtest-all.cc gmock_main.cc)
#
############################################################################
-# set default compiler flags for 3rdParty code
-set (CMAKE_C_FLAGS "")
-set (CMAKE_CXX_FLAGS "")
+project(gtest)
+project_Type(3RDPARTY)
# include base path to 3rdParty code
include_directories ("..")
# build unit test frameworks, if tests are enabled
-add_library(gtest STATIC gtest-all.cc gtest_main.cc)
+add_library(${PROJECT_NAME} STATIC gtest-all.cc gtest_main.cc)
#
############################################################################
-# set default compiler flags for 3rdParty code
-set (CMAKE_C_FLAGS "")
-set (CMAKE_CXX_FLAGS "")
+project(systemd)
+project_Type(3RDPARTY)
# build systemd reference client library
-add_library(systemd STATIC sd-daemon.c)
+add_library(${PROJECT_NAME} STATIC sd-daemon.c)
enable_testing()
- set (CMAKE_CXX_FLAGS "")
-
add_executable(${PROJECT_NAME}_Test
tests/SceneTest.cpp
tests/LayermanagerTest.cpp
if (WITH_TESTS)
- set (CMAKE_CXX_FLAGS "")
-
enable_testing()
add_executable(${PROJECT_NAME}_Test tests/IlmCommandTest.cpp tests/IlmNotificationTest.cpp src/generic_ilm_client.c)
project (LayerManagerControl)
project_type(CORE)
-# use default compiler settings here
-set (CMAKE_CXX_FLAGS "")
-
include_directories(
include
"../../LayerManagerClient/ilmClient/include"
install(FILES ${RENDERERBASE_DIR}/include/BaseRenderer.h
${RENDERERBASE_DIR}/include/RenderUtil.h
DESTINATION include/layermanager/graphic/Base)
-
-#===========================================================================
-# test
-#===========================================================================
-if (WITH_TESTS)
- set (CMAKE_CXX_FLAGS "")
- enable_testing()
- #add_subdirectory_once (${GRAPHIC_LIB_DIR}/tests)
-endif(WITH_TESTS)
\ No newline at end of file
${RENDERERBASE_DIR}/include/RenderUtil.h
DESTINATION include/layermanager/graphic/Base)
-#===========================================================================
-# test
-#===========================================================================
-if (WITH_TESTS)
- set (CMAKE_CXX_FLAGS "")
- enable_testing()
- #add_subdirectory_once (${GRAPHIC_LIB_DIR}/tests)
-endif(WITH_TESTS)
\ No newline at end of file
install(FILES ${RENDERERBASE_DIR}/include/BaseRenderer.h
${RENDERERBASE_DIR}/include/RenderUtil.h
DESTINATION include/layermanager/graphic/Base)
-
-#===========================================================================
-# test
-#===========================================================================
-if (WITH_TESTS)
- set (CMAKE_CXX_FLAGS "")
- enable_testing()
- #add_subdirectory_once (${GRAPHIC_LIB_DIR}/tests)
-endif(WITH_TESTS)
\ No newline at end of file
${RENDERERBASE_DIR}/include/RenderUtil.h
DESTINATION include/layermanager/graphic/Base)
-#===========================================================================
-# test
-#===========================================================================
-if (WITH_TESTS)
- set (CMAKE_CXX_FLAGS "")
- enable_testing()
- #add_subdirectory_once (${GRAPHIC_LIB_DIR}/tests)
-endif(WITH_TESTS)
install(FILES ${RENDERERBASE_DIR}/include/BaseRenderer.h
${RENDERERBASE_DIR}/include/RenderUtil.h
DESTINATION include/layermanager/graphic/Base)
-
-#===========================================================================
-# test
-#===========================================================================
-if (WITH_TESTS)
- set (CMAKE_CXX_FLAGS "")
- enable_testing()
- #add_subdirectory_once (${GRAPHIC_LIB_DIR}/tests)
-endif(WITH_TESTS)
\ No newline at end of file
include_directories(${INCLUDE_DIRS})
-if (INSTALL_UTILS_LIB)
- install(FILES
- include/Log.h
- include/LogMessageBuffer.h
- include/IlmMatrix.h
- include/Bitmap.h
- DESTINATION
- include/layermanager
- )
-
- install(TARGETS
- ${PROJECT_NAME}
- DESTINATION
- lib/layermanager/static
- )
-endif (INSTALL_UTILS_LIB)
+install(FILES
+ include/Log.h
+ include/LogMessageBuffer.h
+ include/IlmMatrix.h
+ include/Bitmap.h
+ DESTINATION
+ include/layermanager
+)
-if (WITH_TESTS)
+install(TARGETS
+ ${PROJECT_NAME}
+ DESTINATION
+ lib/layermanager/static
+)
- set (CMAKE_CXX_FLAGS "")
+if (WITH_TESTS)
add_executable(${PROJECT_NAME}_Test
tests/BitmapTest.cpp
#==============================================================================
# default compiler flags
#==============================================================================
-set (COMPILER_FLAGS_EXAMPLE "-Wall -Wextra -fPIC")
-set (COMPILER_FLAGS_PLUGIN "-Wall -Wextra -fPIC -pedantic -Wno-long-long")
-set (COMPILER_FLAGS_CORE "-Wall -Wextra -fPIC -pedantic -Wno-long-long -Wno-unused-function")
+set (COMPILER_FLAGS_3RDPARTY "-fPIC")
+set (COMPILER_FLAGS_TEST "-fPIC")
+set (COMPILER_FLAGS_EXAMPLE "-fPIC -Wall -Wextra")
+set (COMPILER_FLAGS_PLUGIN "-fPIC -Wall -Wextra -pedantic -Wno-long-long")
+set (COMPILER_FLAGS_CORE "-fPIC -Wall -Wextra -pedantic -Wno-long-long -Wno-unused-function")
#==============================================================================