summaryrefslogtreecommitdiff
path: root/cmake/modules
diff options
context:
space:
mode:
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>2013-01-04 03:59:32 -0800
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>2013-01-14 00:34:17 -0800
commitf75230dd9de6701cdecd1fc97a91f422e38f9a3c (patch)
tree613fd376a6a8585500800ae9ae094baff0574fe4 /cmake/modules
parent5ae018f13303ab89615910dcf376d4e09b855a63 (diff)
downloadlayer_management-f75230dd9de6701cdecd1fc97a91f422e38f9a3c.tar.gz
CMake: use project_type(PLUGIN) to create list of statically linked plugins
plugins only have to define 'PLUGIN' as type to support static linking into LayerManagerService binary. this removed a lot of repetitive cmake code for each plugin. Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/CustomMacros.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/modules/CustomMacros.txt b/cmake/modules/CustomMacros.txt
index 4eb8864..1f222ba 100644
--- a/cmake/modules/CustomMacros.txt
+++ b/cmake/modules/CustomMacros.txt
@@ -28,6 +28,12 @@ MACRO(project_type mode)
string(TOUPPER ${mode} mode_capital)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILER_FLAGS_${mode_capital}}")
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS}")
+
+ if (mode_capital STREQUAL "PLUGIN" AND WITH_STATIC_LIBRARIES)
+ set (STATICALLY_LINKED_PLUGINS ${STATICALLY_LINKED_PLUGINS}
+ ${PROJECT_NAME} CACHE INTERNAL "list of static plugins")
+ endif (mode_capital STREQUAL "PLUGIN" AND WITH_STATIC_LIBRARIES)
+
ENDMACRO(project_type)
MACRO(export_build_flag name description)