Simplify doc-files installation

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
sayer/1.4-spce2.6
Peter Lemenkov 16 years ago
parent 6f049cb7b8
commit d31c6fd18f

@ -4,4 +4,3 @@ AnnounceB2B.cpp
SET(sems_module_name ann_b2b)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -4,4 +4,3 @@ AnnounceTransfer.cpp
SET(sems_module_name announce_transfer)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -4,4 +4,3 @@ Announcement.cpp
SET(sems_module_name announcement)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -15,4 +15,3 @@ your_prompt.wav
SET(sems_module_name annrecorder)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -4,4 +4,3 @@ AuthB2B.cpp
SET(sems_module_name auth_b2b)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -4,4 +4,3 @@ CallTimer.cpp
SET(sems_module_name call_timer)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -4,4 +4,3 @@ CallBack.cpp
SET(sems_module_name callback)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -4,4 +4,3 @@ Click2Dial.cpp
SET(sems_module_name click2dial)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -3,3 +3,4 @@ INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/python.rules.txt)
PYTHON_SOURCES_COMPILE(conf_auth.py ivr)
SEMS_INSTALL_CONFIGS(conf_auth)

@ -23,4 +23,3 @@ ENDIF(MYSQLPP_FOUND)
SET(sems_module_name conference)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -4,7 +4,7 @@ ADD_SUBDIRECTORY (lib)
ADD_SUBDIRECTORY (mods)
SET(sems_module_name dsm)
SET(sems_config_files dsm_in_prompts dsm_out_prompts)
SET(dsm_config_files dsm dsm_in_prompts dsm_out_prompts)
SET(dsm_doc_files
../../doc/dsm/Readme.dsm.txt
../../doc/dsm/dsm_syntax.txt
@ -12,4 +12,3 @@ SET(dsm_doc_files
)
SET(dsm_doc_dirs ../../doc/dsm)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -11,4 +11,3 @@ ENDIF(MYSQLPP_FOUND)
SET(sems_module_name early_announce)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -12,4 +12,3 @@ INCLUDE_DIRECTORIES(${MISDN_INCLUDE_DIR}/mISDNuser)
SET(sems_module_name gateway)
SET(sems_module_libs mISDN isdnnet)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -21,7 +21,6 @@ SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${PYTHON_LIB_FLAGS}"
SET(sems_module_name ivr)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/python.rules.txt)
PYTHON_SOURCES_COMPILE(py/log.py ivr)

@ -10,4 +10,3 @@ ADD_DEFINITIONS(-I${LIBEV_INCLUDE_DIR})
SET(sems_module_name jsonrpc)
SET(sems_module_libs ${sems_module_libs} ev)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -14,7 +14,6 @@ set (audio_files
you_have.wav
)
SET(sems_module_name mailbox)
SET(sems_config_files mailbox_query)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/python.rules.txt)
@ -24,3 +23,5 @@ PYTHON_SOURCES_COMPILE(mailbox_query.py ivr)
PYTHON_SOURCES_COMPILE(imap_mailbox/MailboxURL.py ivr/imap_mailbox)
PYTHON_SOURCES_COMPILE(imap_mailbox/__init__.py ivr/imap_mailbox)
PYTHON_SOURCES_COMPILE(imap_mailbox/imap4ext.py ivr/imap_mailbox)
SEMS_INSTALL_CONFIGS("mailbox;mailbox_query")

@ -4,4 +4,3 @@ Monitoring.cpp
SET(sems_module_name monitoring)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -8,4 +8,3 @@ MsgStorage.cpp
SET(sems_module_name msg_storage)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -9,3 +9,4 @@ INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/python.rules.txt)
PYTHON_SOURCES_COMPILE(pin_collect.py ivr)
SEMS_INSTALL_CONFIGS(pin_collect)

@ -9,4 +9,3 @@ test.predef
SET(sems_module_name precoded_announce)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -23,7 +23,6 @@ INCLUDE_DIRECTORIES (sip)
SET(sems_module_name py_sems)
SET(sems_module_libs sip)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/python.rules.txt)
PYTHON_SOURCES_COMPILE(py/py_sems_log.py plug-in)

@ -4,4 +4,3 @@ RegistrationAgent.cpp
SET(sems_module_name reg_agent)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -4,4 +4,3 @@ SSTB2B.cpp
SET(sems_module_name sst_b2b)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -4,4 +4,3 @@ SWPrepaidSIP.cpp
SET(sems_module_name sw_prepaid_sip)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -12,3 +12,4 @@ INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/python.rules.txt)
PYTHON_SOURCES_COMPILE(twit.py ivr)
SEMS_INSTALL_CONFIGS(twit)

@ -65,4 +65,3 @@ you_have.wav
SET(sems_module_name voicebox)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -24,4 +24,3 @@ default_en.wav
SET(sems_module_name voicemail)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -26,4 +26,3 @@ wrong_pin.wav
SET(sems_module_name webconference)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/audio.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -16,4 +16,3 @@ IF(OPENSSL_FOUND)
ENDIF(OPENSSL_FOUND)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)

@ -1,17 +1,21 @@
FOREACH (config_file ${sems_module_name} ${sems_config_files})
# Check whether we providing a template for this config
FIND_PATH(SEMS_${sems_module_name}_CONFIG_${config_file}_TEMPLATE ${config_file}.conf.cmake PATHS ${CMAKE_CURRENT_SOURCE_DIR}/etc)
MACRO(SEMS_INSTALL_CONFIGS config_files)
FOREACH (config_file ${config_files})
# Check whether we providing a template for this config
FIND_PATH(SEMS_${sems_module_name}_CONFIG_${config_file}_TEMPLATE ${config_file}.conf.cmake PATHS ${CMAKE_CURRENT_SOURCE_DIR}/etc)
IF (SEMS_${sems_module_name}_CONFIG_${config_file}_TEMPLATE)
# If we do provide a template, then process it and create real
# config
CONFIGURE_FILE (
${SEMS_${sems_module_name}_CONFIG_${config_file}_TEMPLATE}/${config_file}.conf.cmake
${SEMS_${sems_module_name}_CONFIG_${config_file}_TEMPLATE}/${config_file}.conf
)
ENDIF (SEMS_${sems_module_name}_CONFIG_${config_file}_TEMPLATE)
IF (SEMS_${sems_module_name}_CONFIG_${config_file}_TEMPLATE)
# If we do provide a template, then process it and create real
# config
CONFIGURE_FILE (
${SEMS_${sems_module_name}_CONFIG_${config_file}_TEMPLATE}/${config_file}.conf.cmake
${SEMS_${sems_module_name}_CONFIG_${config_file}_TEMPLATE}/${config_file}.conf
)
ENDIF (SEMS_${sems_module_name}_CONFIG_${config_file}_TEMPLATE)
INSTALL(
FILES ./etc/${config_file}.conf DESTINATION ${SEMS_CFG_PREFIX}/etc/sems/etc/
)
ENDFOREACH(config_file ${sems_module_name} ${sems_config_files})
IF (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/etc/${config_file}.conf )
INSTALL(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/etc/${config_file}.conf DESTINATION ${SEMS_CFG_PREFIX}/etc/sems/etc/
)
ENDIF (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/etc/${config_file}.conf )
ENDFOREACH (config_file ${config_files})
ENDMACRO(SEMS_INSTALL_CONFIGS)

@ -5,6 +5,7 @@
# E.g. the issue, then speex module should be linked to -lspeex
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/doc.rules.txt)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/config.rules.txt)
ADD_LIBRARY(sems_${sems_module_name} SHARED ${${sems_module_name}_SRCS})
@ -28,3 +29,9 @@ IF(NOT DEFINED ${sems_module_name}_docs)
ENDIF(NOT DEFINED ${sems_module_name}_docs)
SEMS_INSTALL_DOCS("${${sems_module_name}_docs}" "${${sems_module_name}_doc_dirs}")
IF(NOT DEFINED ${sems_module_name}_config_files)
SEMS_INSTALL_CONFIGS("${sems_module_name}")
ELSE(NOT DEFINED ${sems_module_name}_config_files)
SEMS_INSTALL_CONFIGS("${${sems_module_name}_config_files}")
ENDIF(NOT DEFINED ${sems_module_name}_config_files)

Loading…
Cancel
Save