Module: sems Branch: master Commit: 9710a29482310bca3338a549cc7904d2e8501cf0 URL: https://github.com/sems-server/sems/commit/9710a29482310bca3338a549cc7904d2e8501cf0
Author: Peter Lemenkov <lemen...@gmail.com> Committer: Peter Lemenkov <lemen...@gmail.com> Date: 2015-06-17T16:50:31+03:00 Install DSM module config files if any Signed-off-by: Peter Lemenkov <lemen...@gmail.com> --- Modified: cmake/dsm.lib.rules.txt --- Diff: https://github.com/sems-server/sems/commit/9710a29482310bca3338a549cc7904d2e8501cf0.diff Patch: https://github.com/sems-server/sems/commit/9710a29482310bca3338a549cc7904d2e8501cf0.patch --- diff --git a/cmake/dsm.lib.rules.txt b/cmake/dsm.lib.rules.txt index 1358b48..230663d 100644 --- a/cmake/dsm.lib.rules.txt +++ b/cmake/dsm.lib.rules.txt @@ -1,5 +1,7 @@ # A place for common parts of SEMS DSM modules rules +INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt) + # We must add base apps/dsm directory as INCLUDEDIR INCLUDE_DIRECTORIES (../..) @@ -23,7 +25,15 @@ TARGET_LINK_LIBRARIES(sems_dsm_${sems_dsm_module_name} ${CMAKE_DL_LIBS} ${sems_d SET_TARGET_PROPERTIES(sems_dsm_${sems_dsm_module_name} PROPERTIES OUTPUT_NAME ${sems_dsm_module_name}) SET_TARGET_PROPERTIES(sems_dsm_${sems_dsm_module_name} PROPERTIES PREFIX "") +ADD_DEFINITIONS(-DMOD_NAME=\\\"${sems_dsm_module_name}\\\") + INSTALL( TARGETS sems_dsm_${sems_dsm_module_name} LIBRARY DESTINATION ${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/dsm/ ) + +IF(NOT DEFINED ${sems_dsm_module_name}_config_files) + SEMS_INSTALL_CONFIGS("${sems_dsm_module_name}") +ELSE(NOT DEFINED ${sems_dsm_module_name}_config_files) + SEMS_INSTALL_CONFIGS("${${sems_dsm_module_name}_config_files}") +ENDIF(NOT DEFINED ${sems_dsm_module_name}_config_files) _______________________________________________ Semsdev mailing list Semsdev@lists.iptel.org http://lists.iptel.org/mailman/listinfo/semsdev