From 6dd0023017a029bb4fdf36ddfe207bc03d73ccc7 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sun, 11 Oct 2009 08:20:14 +0000 Subject: [PATCH] - Fixed installation of main config files. - Added ability to install zrtp.conf. Signed-off-by: Peter Lemenkov git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1520 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/CMakeLists.txt | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 0c19981d..1e3a3b20 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -81,12 +81,17 @@ ENDIF(SEMS_USE_IPV6) ADD_SUBDIRECTORY(plug-in) +# Create config-file from template CONFIGURE_FILE (./etc/sems.conf.cmake ./etc/sems.conf) -INSTALL(TARGETS sems - RUNTIME DESTINATION ${SEMS_EXEC_PREFIX}/sbin - FILES ./etc/sems.conf DESTINATION ${SEMS_CFG_PREFIX}/etc/sems/ - FILES ./etc/app_mapping.conf DESTINATION ${SEMS_CFG_PREFIX}/etc/sems/etc/ -) +# Installation of main SEMS executable +INSTALL(TARGETS sems RUNTIME DESTINATION ${SEMS_EXEC_PREFIX}/sbin) + +# Installation of config-files +INSTALL(FILES ./etc/sems.conf DESTINATION ${SEMS_CFG_PREFIX}/etc/sems/) +INSTALL(FILES ./etc/app_mapping.conf DESTINATION ${SEMS_CFG_PREFIX}/etc/sems/etc/) +IF(ZRTP_FOUND) +INSTALL(FILES ./etc/zrtp.conf DESTINATION ${SEMS_CFG_PREFIX}/etc/sems/etc/) +ENDIF(ZRTP_FOUND) INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)