Browse code

initial commit of cmake files

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1373 8eb893ce-cfd4-0310-b710-fb5ebe64c474

Peter Lemenkov authored on 08/05/2009 08:10:05
Showing 56 changed files
... ...
@@ -12,41 +12,225 @@ SET(SEMS_VERSION
12 12
 OPTION(SEMS_USE_SPANDSP       "Build with spandsp" OFF)
13 13
 OPTION(SEMS_USE_LIBSAMPLERATE "Build with libsamplerate" OFF)
14 14
 OPTION(SEMS_USE_ZRTP          "Build with ZRTP" OFF)
15
+OPTION(SEMS_USE_MP3           "Build with Lame MP3" OFF)
16
+OPTION(SEMS_USE_TTS           "Build with Text-to-speech support (requires Flite)" OFF)
17
+OPTION(SEMS_USE_OPENSSL       "Build with OpenSSL" OFF)
15 18
 OPTION(SEMS_USE_MONITORING    "Build with monitoring support" OFF)
19
+OPTION(SEMS_USE_OPENSER       "Build with OpenSER support" OFF)
20
+OPTION(SEMS_USE_IPV6          "Build with IPv6 support" OFF)
16 21
 
22
+SET(CMAKE_VERBOSE_MAKEFILE ON)
23
+
24
+# compile with spandsp DTMF detection? see soft-switch.org
25
+#   this needs a fairly new version of spandsp - tested with 0.0.4pre11
26
+#   will not work with spandsp 0.0.2 .
27
+#   (which means that current debian and gentoo packages don't work)
17 28
 IF(SEMS_USE_SPANDSP)
18
-  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_SPANDSP -D__STDC_LIMIT_MACROS")
19
-  SET(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -DUSE_SPANDSP -D__STDC_LIMIT_MACROS")
29
+	FIND_LIBRARY(SPANDSP_LIBRARIES NAMES spandsp)
30
+	FIND_PATH(SPANDSP_INCLUDE_DIR spandsp.h)
31
+	IF(SPANDSP_INCLUDE_DIR AND SPANDSP_LIBRARIES)
32
+		SET(SPANDSP_FOUND TRUE)
33
+		MESSAGE(STATUS "Found spandsp includes:	${SPANDSP_INCLUDE_DIR}/spandsp.h")
34
+		MESSAGE(STATUS "Found spandsp library: ${SPANDSP_LIBRARIES}")
35
+		SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_SPANDSP -D__STDC_LIMIT_MACROS")
36
+		SET(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -DUSE_SPANDSP -D__STDC_LIMIT_MACROS")
37
+		MESSAGE(STATUS "Using spandsp: YES")
38
+	ELSE(SPANDSP_INCLUDE_DIR AND SPANDSP_LIBRARIES)
39
+		SET(SPANDSP_FOUND FALSE)
40
+		MESSAGE(FATAL_ERROR "Could NOT find spandsp development files")
41
+	ENDIF(SPANDSP_INCLUDE_DIR AND SPANDSP_LIBRARIES)
42
+ELSE(SEMS_USE_SPANDSP)
43
+	SET(SPANDSP_FOUND FALSE)
44
+	MESSAGE(STATUS "Using spandsp: NO (default)")
20 45
 ENDIF(SEMS_USE_SPANDSP)
21 46
 
47
+# compile with sample rate conversion from secret rabbit code?
48
+# (see http://www.mega-nerd.com/SRC/)
22 49
 IF(SEMS_USE_LIBSAMPLERATE)
23
-  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_LIBSAMPLERATE")
24
-  SET(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -DUSE_LIBSAMPLERATE")
50
+	FIND_LIBRARY(LIBSAMPLERATE_LIBRARIES NAMES samplerate)
51
+	FIND_PATH(LIBSAMPLERATE_INCLUDE_DIR samplerate.h)
52
+	IF(LIBSAMPLERATE_INCLUDE_DIR AND LIBSAMPLERATE_LIBRARIES)
53
+		SET(LIBSAMPLERATE_FOUND TRUE)
54
+		MESSAGE(STATUS "Found libsamplerate includes: ${LIBSAMPLERATE_INCLUDE_DIR}/samplerate.h")
55
+		MESSAGE(STATUS "Found libsamplerate library: ${LIBSAMPLERATE_LIBRARIES}")
56
+		SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_LIBSAMPLERATE")
57
+		SET(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -DUSE_LIBSAMPLERATE")
58
+		MESSAGE(STATUS "Using libsamplerate: YES")
59
+	ELSE(LIBSAMPLERATE_INCLUDE_DIR AND LIBSAMPLERATE_LIBRARIES)
60
+		SET(LIBSAMPLERATE_FOUND FALSE)
61
+		MESSAGE(FATAL_ERROR "Could NOT find libsamplerate development files")
62
+	ENDIF(LIBSAMPLERATE_INCLUDE_DIR AND LIBSAMPLERATE_LIBRARIES)
63
+ELSE(SEMS_USE_LIBSAMPLERATE)
64
+	SET(LIBSAMPLERATE_FOUND FALSE)
65
+	MESSAGE(STATUS "Using libsamplerate: NO (default)")
25 66
 ENDIF(SEMS_USE_LIBSAMPLERATE)
26 67
 
68
+# ZRTP support? (see zfoneproject.com)
69
+IF(SEMS_USE_ZRTP)
70
+	SET(ZRTP_FOUND TRUE)
71
+	MESSAGE(STATUS "Using libzrtp: YES")
72
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWITH_ZRTP -DBUILD_ZRTP_MUTEXES -DBUILD_DEFAULT_CACHE -DBUILD_DEFAULT_TIMER -DUNIX -DBUILD_ZRTP_MUTEXES")
73
+	SET(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -DWITH_ZRTP -DBUILD_ZRTP_MUTEXES -DBUILD_DEFAULT_CACHE -DBUILD_DEFAULT_TIMER -DUNIX -DBUILD_ZRTP_MUTEXES")
74
+ELSE(SEMS_USE_ZRTP)
75
+	SET(ZRTP_FOUND FALSE)
76
+	MESSAGE(STATUS "Using libzrtp: NO (default)")
77
+ENDIF(SEMS_USE_ZRTP)
78
+
79
+# Lame MP3 support
80
+IF(SEMS_USE_LAME)
81
+	FIND_LIBRARY(LAME_LIBRARIES NAMES mp3lame)
82
+	FIND_PATH(LAME_INCLUDE_DIR lame.h)
83
+	IF(LAME_INCLUDE_DIR AND LAME_LIBRARIES)
84
+		SET(LAME_FOUND TRUE)
85
+		MESSAGE(STATUS "Found lame mp3 includes: ${LAME_INCLUDE_DIR}/lame.h")
86
+		MESSAGE(STATUS "Found lame mp3 library: ${LAME_LIBRARIES}")
87
+		MESSAGE(STATUS "Using lame mp3: YES")
88
+	ELSE(LAME_INCLUDE_DIR AND LAME_LIBRARIES)
89
+		SET(LAME_FOUND FALSE)
90
+		MESSAGE(FATAL_ERROR "Could NOT find lame development files")
91
+	ENDIF(LAME_INCLUDE_DIR AND LAME_LIBRARIES)
92
+ELSE(SEMS_USE_LAME)
93
+	SET(LAME_FOUND FALSE)
94
+	MESSAGE(STATUS "Using lame mp3: NO (default)")
95
+ENDIF(SEMS_USE_LAME)
96
+
97
+# build in support for monitoring?
27 98
 IF(SEMS_USE_MONITORING)
28
-  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_MONITORING")
29
-  SET(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -DUSE_MONITORING")  
99
+	MESSAGE(STATUS "Enable monitoring: YES")
100
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_MONITORING")
101
+	SET(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -DUSE_MONITORING")
102
+ELSE(SEMS_USE_MONITORING)
103
+	MESSAGE(STATUS "Enable monitoring: NO (default)")
30 104
 ENDIF(SEMS_USE_MONITORING)
31 105
 
32
-# todo: get build arch
33
-SET(ARCH 32)
34
-SET(OS 1)
35
-
36
-SET(CMAKE_VERBOSE_MAKEFILE ON)
106
+IF(SEMS_USE_OPENSER)
107
+	MESSAGE(STATUS "Enable OpenSER support: YES")
108
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DOpenSER")
109
+	SET(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -DOpenSER")
110
+ELSE(SEMS_USE_OPENSER)
111
+	MESSAGE(STATUS "Enable OpenSER support: NO (default)")
112
+ENDIF(SEMS_USE_OPENSER)
113
+
114
+IF(SEMS_USE_IPV6)
115
+	MESSAGE(STATUS "Enable IPv6 support: YES")
116
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSUPPORT_IPV6")
117
+	SET(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -DSUPPORT_IPV6")
118
+ELSE(SEMS_USE_IPV6)
119
+	MESSAGE(STATUS "Enable IPv6 support: NO (default)")
120
+ENDIF(SEMS_USE_IPV6)
121
+
122
+# Let's try to find GSM library and header files
123
+FIND_LIBRARY(GSM_LIBRARIES NAMES gsm)
124
+FIND_PATH(GSM_INCLUDE_DIR gsm.h)
125
+IF(GSM_INCLUDE_DIR AND GSM_LIBRARIES)
126
+	SET(GSM_FOUND TRUE)
127
+	MESSAGE(STATUS "Found gsm includes: ${GSM_INCLUDE_DIR}/gsm.h")
128
+	MESSAGE(STATUS "Found gsm library: ${GSM_LIBRARIES}")
129
+	MESSAGE(STATUS "Using gsm: YES")
130
+ELSE(GSM_INCLUDE_DIR AND GSM_LIBRARIES)
131
+	SET(GSM_FOUND FALSE)
132
+	MESSAGE(STATUS "Using gsm: NO")
133
+ENDIF (GSM_INCLUDE_DIR AND GSM_LIBRARIES)
134
+
135
+# Let's try to find SPEEX library and header files
136
+FIND_LIBRARY(SPEEX_LIBRARIES NAMES speex)
137
+FIND_PATH(SPEEX_INCLUDE_DIR speex.h)
138
+IF(SPEEX_INCLUDE_DIR AND SPEEX_LIBRARIES)
139
+	SET(SPEEX_FOUND TRUE)
140
+	MESSAGE(STATUS "Found speex includes: ${SPEEX_INCLUDE_DIR}/speex.h")
141
+	MESSAGE(STATUS "Found speex library: ${SPEEX_LIBRARIES}")
142
+	MESSAGE(STATUS "Using speex: YES")
143
+ELSE(SPEEX_INCLUDE_DIR AND SPEEX_LIBRARIES)
144
+	SET(SPEEX_FOUND FALSE)
145
+	MESSAGE(STATUS "Using speex: NO")
146
+ENDIF (SPEEX_INCLUDE_DIR AND SPEEX_LIBRARIES)
147
+
148
+IF(SEMS_USE_OPENSSL)
149
+	FIND_PACKAGE(OpenSSL REQUIRED QUIETLY)
150
+	MESSAGE(STATUS "Found OpenSSL includes:	${OPENSSL_INCLUDE_DIR}/openssl/ssl.h")
151
+	MESSAGE(STATUS "Found OpenSSL library: ${OPENSSL_LIBRARIES}")
152
+	MESSAGE(STATUS "Using OpenSSL: YES")
153
+ELSE(SEMS_USE_OPENSSL)
154
+	MESSAGE(STATUS "Using OpenSSL: NO (default)")
155
+ENDIF(SEMS_USE_OPENSSL)
156
+
157
+# Let's try to find Python development files
158
+FIND_PACKAGE(PythonLibs)
159
+IF(PYTHONLIBS_FOUND)
160
+	MESSAGE(STATUS "Found Python includes:	${PYTHON_INCLUDE_PATH}/Python.h")
161
+	MESSAGE(STATUS "Found Python library: ${PYTHON_LIBRARIES}")
162
+	MESSAGE(STATUS "Using Python: YES")
163
+ELSE(PYTHONLIBS_FOUND)
164
+	MESSAGE(STATUS "Using Python: NO")
165
+ENDIF(PYTHONLIBS_FOUND)
166
+
167
+# Let's try to find SIP (Python bindings generator) development files
168
+#FIND_PATH(SIP_INCLUDE_DIR sip.h)
169
+#IF(SIP_INCLUDE_DIR)
170
+#	SET(SIP_FOUND TRUE)
171
+#	MESSAGE(STATUS "Found SIP includes:	${SIP_INCLUDE_DIR}/sip.h")
172
+#	MESSAGE(STATUS "Using SIP: YES")
173
+#ELSE(SIP_INCLUDE_DIR)
174
+#	SET(SIP_FOUND FALSE)
175
+#	MESSAGE(STATUS "Using SIP: NO")
176
+#ENDIF(SIP_INCLUDE_DIR)
177
+
178
+# Let's try to find MySQL++ development files
179
+FIND_LIBRARY(MYSQLPP_LIBRARIES NAMES mysqlpp)
180
+FIND_PATH(MYSQLPP_INCLUDE_DIR mysql++/mysql++.h)
181
+IF(MYSQLPP_INCLUDE_DIR AND MYSQLPP_LIBRARIES)
182
+	SET(MYSQLPP_FOUND TRUE)
183
+	MESSAGE(STATUS "Found MySQL++ includes:	${MYSQLPP_INCLUDE_DIR}/mysql++/mysql++.h")
184
+	MESSAGE(STATUS "Found MySQL++ library: ${MYSQLPP_LIBRARIES}")
185
+	MESSAGE(STATUS "Using MySQL++: YES")
186
+ELSE(MYSQLPP_INCLUDE_DIR AND MYSQLPP_LIBRARIES)
187
+	SET(MYSQLPP_FOUND FALSE)
188
+	MESSAGE(STATUS "Using MySQL++: NO")
189
+ENDIF(MYSQLPP_INCLUDE_DIR AND MYSQLPP_LIBRARIES)
190
+
191
+# Let's try to find Flite library and header files
192
+IF(SEMS_USE_TTS)
193
+	FIND_LIBRARY(FLITE_LIBRARIES NAMES flite)
194
+	FIND_PATH(FLITE_INCLUDE_DIR flite/flite.h)
195
+	IF(FLITE_INCLUDE_DIR AND FLITE_LIBRARIES)
196
+		SET(FLITE_FOUND TRUE)
197
+		MESSAGE(STATUS "Found flite includes: ${FLITE_INCLUDE_DIR}/flite/flite.h")
198
+		MESSAGE(STATUS "Found flite library: ${FLITE_LIBRARIES}")
199
+		MESSAGE(STATUS "Using flite: YES")
200
+	ELSE(FLITE_INCLUDE_DIR AND FLITE_LIBRARIES)
201
+		SET(FLITE_FOUND FALSE)
202
+		MESSAGE(FATAL_ERROR "CANNOT find flite devel files")
203
+	ENDIF (FLITE_INCLUDE_DIR AND FLITE_LIBRARIES)
204
+ELSE(SEMS_USE_TTS)
205
+	SET(FLITE_FOUND FALSE)
206
+	MESSAGE(STATUS "Using text-to-speech: NO (default)")
207
+ENDIF(SEMS_USE_TTS)
208
+
209
+# Let's try to find mISDN library and header files
210
+FIND_LIBRARY(MISDN_LIBRARIES NAMES mISDN)
211
+FIND_PATH(MISDN_INCLUDE_DIR mISDNuser/mISDNlib.h)
212
+IF(MISDN_INCLUDE_DIR AND MISDN_LIBRARIES)
213
+	SET(MISDN_FOUND TRUE)
214
+	MESSAGE(STATUS "Found mISDN includes: ${MISDN_INCLUDE_DIR}/mISDNuser/mISDNlib.h")
215
+	MESSAGE(STATUS "Found mISDN library: ${MISDN_LIBRARIES}")
216
+	MESSAGE(STATUS "Using mISDN: YES")
217
+ELSE(MISDN_INCLUDE_DIR AND MISDN_LIBRARIES)
218
+	SET(MISDN_FOUND FALSE)
219
+	MESSAGE(STATUS "Using mISDN: NO")
220
+ENDIF (MISDN_INCLUDE_DIR AND MISDN_LIBRARIES)
37 221
 
38 222
 INCLUDE_DIRECTORIES (${SEMS_SOURCE_DIR}/core/ampi)
39 223
 INCLUDE_DIRECTORIES (${SEMS_SOURCE_DIR}/core/amci)
40 224
 INCLUDE_DIRECTORIES (${SEMS_SOURCE_DIR}/core)
41 225
 
42
-CONFIGURE_FILE( config.h.cmake ${SEMS_SOURCE_DIR}/core/config.h )
226
+CONFIGURE_FILE( sems.h.cmake ${SEMS_SOURCE_DIR}/core/sems.h )
43 227
 
44 228
 IF(CMAKE_COMPILER_IS_GNUCC)
45
-  SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_THREAD_SAFE -D_REENTRANT -Wall -Wno-reorder -fPIC -g -O2")
229
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_THREAD_SAFE -D_REENTRANT -Wall -Wno-reorder -fPIC -g -O2")
46 230
 ENDIF(CMAKE_COMPILER_IS_GNUCC)
47 231
 
48 232
 IF(CMAKE_COMPILER_IS_GNUCXX)
49
-  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_THREAD_SAFE -D_REENTRANT -Wall -Wno-reorder -fPIC -g -O2")
233
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_THREAD_SAFE -D_REENTRANT -Wall -Wno-reorder -fPIC -g -O2")
50 234
 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
51 235
 
52 236
 SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
... ...
@@ -54,5 +238,6 @@ SET(CMAKE_C_FLAGS_DEBUG   "${CMAKE_C_FLAGS_DEBUG}   -D_DEBUG")
54 238
 
55 239
 
56 240
 ADD_SUBDIRECTORY (core)
57
-#ADD_SUBDIRECTORY (apps)
241
+ADD_SUBDIRECTORY (apps)
58 242
 
243
+#SET_DIRECTORY_PROPERTIES(ADDITIONAL_MAKE_CLEAN_FILES *~)
59 244
new file mode 100644
... ...
@@ -0,0 +1,39 @@
1
+ADD_SUBDIRECTORY(ann_b2b)
2
+ADD_SUBDIRECTORY(announce_transfer)
3
+ADD_SUBDIRECTORY(announcement)
4
+ADD_SUBDIRECTORY(annrecorder)
5
+ADD_SUBDIRECTORY(auth_b2b)
6
+ADD_SUBDIRECTORY(call_timer)
7
+ADD_SUBDIRECTORY(callback)
8
+ADD_SUBDIRECTORY(click2dial)
9
+ADD_SUBDIRECTORY(conf_auth)
10
+ADD_SUBDIRECTORY(conference)
11
+IF(OPENSSL_FOUND)
12
+	ADD_SUBDIRECTORY(diameter_client)
13
+ENDIF(OPENSSL_FOUND)
14
+ADD_SUBDIRECTORY(dsm)
15
+ADD_SUBDIRECTORY(early_announce)
16
+#ADD_SUBDIRECTORY(examples)
17
+ADD_SUBDIRECTORY(gateway)
18
+IF(PYTHONLIBS_FOUND)
19
+	ADD_SUBDIRECTORY(ivr)
20
+ENDIF(PYTHONLIBS_FOUND)
21
+ADD_SUBDIRECTORY(mailbox)
22
+ADD_SUBDIRECTORY(monitoring)
23
+IF(LAME_FOUND)
24
+	ADD_SUBDIRECTORY(mp3)
25
+ENDIF(LAME_FOUND)
26
+ADD_SUBDIRECTORY(msg_storage)
27
+ADD_SUBDIRECTORY(pin_collect)
28
+ADD_SUBDIRECTORY(precoded_announce)
29
+#ADD_SUBDIRECTORY(py_sems)
30
+ADD_SUBDIRECTORY(reg_agent)
31
+ADD_SUBDIRECTORY(registrar_client)
32
+ADD_SUBDIRECTORY(sw_prepaid_sip)
33
+ADD_SUBDIRECTORY(voicebox)
34
+ADD_SUBDIRECTORY(voicemail)
35
+ADD_SUBDIRECTORY(webconference)
36
+IF(OPENSSL_FOUND)
37
+	ADD_SUBDIRECTORY(xmlrpc2di)
38
+ENDIF(OPENSSL_FOUND)
39
+
0 40
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (ann_b2b_SRCS
2
+AnnounceB2B.cpp
3
+)
4
+
5
+add_library(ann_b2b SHARED ${ann_b2b_SRCS})
6
+set_target_properties(ann_b2b PROPERTIES OUTPUT_NAME "ann_b2b")
7
+set_target_properties(ann_b2b PROPERTIES PREFIX "")
8
+target_link_libraries(ann_b2b ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (announce_transfer_SRCS
2
+AnnounceTransfer.cpp
3
+)
4
+
5
+add_library(announce_transfer SHARED ${announce_transfer_SRCS})
6
+set_target_properties(announce_transfer PROPERTIES OUTPUT_NAME "announce_transfer")
7
+set_target_properties(announce_transfer PROPERTIES PREFIX "")
8
+target_link_libraries(announce_transfer ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (announcement_SRCS
2
+Announcement.cpp
3
+)
4
+
5
+add_library(announcement SHARED ${announcement_SRCS})
6
+set_target_properties(announcement PROPERTIES OUTPUT_NAME "announcement")
7
+set_target_properties(announcement PROPERTIES PREFIX "")
8
+target_link_libraries(announcement ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (annrecorder_SRCS
2
+AnnRecorder.cpp
3
+)
4
+
5
+add_library(annrecorder SHARED ${annrecorder_SRCS})
6
+set_target_properties(annrecorder PROPERTIES OUTPUT_NAME "annrecorder")
7
+set_target_properties(annrecorder PROPERTIES PREFIX "")
8
+target_link_libraries(annrecorder ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+set (auth_b2b_SRCS
2
+AuthB2B.cpp
3
+)
4
+
5
+IF(CMAKE_COMPILER_IS_GNUCC)
6
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMOD_NAME=\"auth_b2b\"")
7
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
8
+
9
+IF(CMAKE_COMPILER_IS_GNUCXX)
10
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMOD_NAME='\"auth_b2b\"'")
11
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
12
+
13
+add_library(auth_b2b SHARED ${auth_b2b_SRCS})
14
+set_target_properties(auth_b2b PROPERTIES OUTPUT_NAME "auth_b2b")
15
+set_target_properties(auth_b2b PROPERTIES PREFIX "")
16
+target_link_libraries(auth_b2b ${CMAKE_DL_LIBS} pthread m)
17
+
0 18
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+set (call_timer_SRCS
2
+CallTimer.cpp
3
+)
4
+
5
+IF(CMAKE_COMPILER_IS_GNUCC)
6
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMOD_NAME=\"call_timer\"")
7
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
8
+
9
+IF(CMAKE_COMPILER_IS_GNUCXX)
10
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMOD_NAME='\"call_timer\"'")
11
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
12
+
13
+add_library(call_timer SHARED ${call_timer_SRCS})
14
+set_target_properties(call_timer PROPERTIES OUTPUT_NAME "call_timer")
15
+set_target_properties(call_timer PROPERTIES PREFIX "")
16
+target_link_libraries(call_timer ${CMAKE_DL_LIBS} pthread m)
17
+
0 18
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+set (callback_SRCS
2
+CallBack.cpp
3
+)
4
+
5
+IF(CMAKE_COMPILER_IS_GNUCC)
6
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMOD_NAME=\"callback\"")
7
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
8
+
9
+IF(CMAKE_COMPILER_IS_GNUCXX)
10
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMOD_NAME='\"callback\"'")
11
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
12
+
13
+add_library(callback SHARED ${callback_SRCS})
14
+set_target_properties(callback PROPERTIES OUTPUT_NAME "callback")
15
+set_target_properties(callback PROPERTIES PREFIX "")
16
+target_link_libraries(callback ${CMAKE_DL_LIBS} pthread m)
17
+
0 18
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (click2dial_SRCS
2
+Click2Dial.cpp
3
+)
4
+
5
+add_library(click2dial SHARED ${click2dial_SRCS})
6
+set_target_properties(click2dial PROPERTIES OUTPUT_NAME "click2dial")
7
+set_target_properties(click2dial PROPERTIES PREFIX "")
8
+target_link_libraries(click2dial ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,30 @@
1
+set (conference_SRCS
2
+Conference.cpp
3
+)
4
+
5
+add_library(conference SHARED ${conference_SRCS})
6
+set_target_properties(conference PROPERTIES OUTPUT_NAME "conference")
7
+set_target_properties(conference PROPERTIES PREFIX "")
8
+target_link_libraries(conference ${CMAKE_DL_LIBS} pthread m)
9
+
10
+IF(FLITE_FOUND AND ZRTP_FOUND)
11
+IF(CMAKE_COMPILER_IS_GNUCC)
12
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWITH_SAS_TTS -I${FLITE_INCLUDE_DIR}/flite")
13
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
14
+
15
+IF(CMAKE_COMPILER_IS_GNUCXX)
16
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWITH_SAS_TTS -I${FLITE_INCLUDE_DIR}/flite")
17
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
18
+SET_TARGET_PROPERTIES(conference PROPERTIES LINK_FLAGS "${LINK_FLAGS} -lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex -lflite")
19
+ENDIF(FLITE_FOUND AND ZRTP_FOUND)
20
+
21
+IF(MYSQLPP_FOUND)
22
+IF(CMAKE_COMPILER_IS_GNUCC)
23
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_MYSQL -I/usr/include/mysql++ -I/usr/include/mysql")
24
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
25
+
26
+IF(CMAKE_COMPILER_IS_GNUCXX)
27
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_MYSQL -I/usr/include/mysql++ -I/usr/include/mysql")
28
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
29
+SET_TARGET_PROPERTIES(conference PROPERTIES LINK_FLAGS "${LINK_FLAGS} -lmysqlpp")
30
+ENDIF(MYSQLPP_FOUND)
0 31
new file mode 100644
... ...
@@ -0,0 +1,25 @@
1
+set (diameter_client_SRCS
2
+DiameterClient.cpp
3
+ServerConnection.cpp
4
+)
5
+
6
+ADD_SUBDIRECTORY (lib_dbase)
7
+INCLUDE_DIRECTORIES (lib_dbase)
8
+
9
+set_property(TARGET libdbase PROPERTY IMPORTED_LOCATION ./lib_dbase/libdbase.a)
10
+
11
+add_library(diameter_client SHARED ${diameter_client_SRCS})
12
+set_target_properties(diameter_client PROPERTIES OUTPUT_NAME "diameter_client")
13
+set_target_properties(diameter_client PROPERTIES PREFIX "")
14
+target_link_libraries(diameter_client ${CMAKE_DL_LIBS} pthread m libdbase)
15
+
16
+IF(OPENSSL_FOUND)
17
+IF(CMAKE_COMPILER_IS_GNUCC)
18
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWITH_OPENSSL")
19
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
20
+
21
+IF(CMAKE_COMPILER_IS_GNUCXX)
22
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWITH_OPENSSL")
23
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
24
+SET_TARGET_PROPERTIES(diameter_client PROPERTIES LINK_FLAGS "${LINK_FLAGS} -lssl -lcrypto")
25
+ENDIF(OPENSSL_FOUND)
0 26
new file mode 100644
... ...
@@ -0,0 +1,23 @@
1
+set (libdbase_SRCS
2
+avp.c
3
+diameter_msg.c
4
+tcp_comm.c
5
+)
6
+
7
+SET(CMAKE_VERBOSE_MAKEFILE ON)
8
+
9
+IF(OPENSSL_FOUND)
10
+IF(CMAKE_COMPILER_IS_GNUCC)
11
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWITH_OPENSSL")
12
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
13
+
14
+IF(CMAKE_COMPILER_IS_GNUCXX)
15
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWITH_OPENSSL")
16
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
17
+ENDIF(OPENSSL_FOUND)
18
+
19
+add_library(libdbase STATIC ${libdbase_SRCS})
20
+set_target_properties(libdbase PROPERTIES OUTPUT_NAME "libdbase")
21
+set_target_properties(libdbase PROPERTIES PREFIX "")
22
+target_link_libraries(libdbase ${CMAKE_DL_LIBS} pthread m)
23
+
0 24
new file mode 100644
... ...
@@ -0,0 +1,21 @@
1
+set (dsm_SRCS
2
+DSM.cpp
3
+DSMChartReader.cpp
4
+DSMCoreModule.cpp
5
+DSMDialog.cpp
6
+DSMElemContainer.cpp
7
+DSMModule.cpp
8
+DSMSession.cpp
9
+DSMStateDiagramCollection.cpp
10
+DSMStateEngine.cpp
11
+)
12
+
13
+INCLUDE_DIRECTORIES (.)
14
+
15
+ADD_SUBDIRECTORY (mods)
16
+
17
+add_library(dsm SHARED ${dsm_SRCS})
18
+set_target_properties(dsm PROPERTIES OUTPUT_NAME "dsm")
19
+set_target_properties(dsm PROPERTIES PREFIX "")
20
+target_link_libraries(dsm ${CMAKE_DL_LIBS} pthread m)
21
+
0 22
new file mode 100644
... ...
@@ -0,0 +1,12 @@
1
+ADD_SUBDIRECTORY (mod_conference)
2
+ADD_SUBDIRECTORY (mod_dlg)
3
+IF(SEMS_USE_MONITORING)
4
+	ADD_SUBDIRECTORY (mod_monitoring)
5
+ENDIF(SEMS_USE_MONITORING)
6
+IF(MYSQLPP_FOUND)
7
+	ADD_SUBDIRECTORY (mod_mysql)
8
+ENDIF(MYSQLPP_FOUND)
9
+ADD_SUBDIRECTORY (mod_sys)
10
+ADD_SUBDIRECTORY (mod_uri)
11
+ADD_SUBDIRECTORY (mod_utils)
12
+
0 13
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (mod_conference_SRCS
2
+ModConference.cpp
3
+)
4
+
5
+add_library(mod_conference SHARED ${mod_conference_SRCS})
6
+set_target_properties(mod_conference PROPERTIES OUTPUT_NAME "mod_conference")
7
+set_target_properties(mod_conference PROPERTIES PREFIX "")
8
+target_link_libraries(mod_conference ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (mod_dlg_SRCS
2
+ModDlg.cpp
3
+)
4
+
5
+add_library(mod_dlg SHARED ${mod_dlg_SRCS})
6
+set_target_properties(mod_dlg PROPERTIES OUTPUT_NAME "mod_dlg")
7
+set_target_properties(mod_dlg PROPERTIES PREFIX "")
8
+target_link_libraries(mod_dlg ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (mod_monitoring_SRCS
2
+ModMonitoring.cpp
3
+)
4
+
5
+add_library(mod_monitoring SHARED ${mod_monitoring_SRCS})
6
+set_target_properties(mod_monitoring PROPERTIES OUTPUT_NAME "mod_monitoring")
7
+set_target_properties(mod_monitoring PROPERTIES PREFIX "")
8
+target_link_libraries(mod_monitoring ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+set (mod_mysql_SRCS
2
+ModMysql.cpp
3
+)
4
+
5
+IF(CMAKE_COMPILER_IS_GNUCC)
6
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/usr/include/mysql++ -I/usr/include/mysql")
7
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
8
+
9
+IF(CMAKE_COMPILER_IS_GNUCXX)
10
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/include/mysql++ -I/usr/include/mysql")
11
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
12
+
13
+add_library(mod_mysql SHARED ${mod_mysql_SRCS})
14
+set_target_properties(mod_mysql PROPERTIES OUTPUT_NAME "mod_mysql")
15
+set_target_properties(mod_mysql PROPERTIES PREFIX "")
16
+target_link_libraries(mod_mysql ${CMAKE_DL_LIBS} pthread m mysqlpp)
17
+
0 18
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (mod_sys_SRCS
2
+ModSys.cpp
3
+)
4
+
5
+add_library(mod_sys SHARED ${mod_sys_SRCS})
6
+set_target_properties(mod_sys PROPERTIES OUTPUT_NAME "mod_sys")
7
+set_target_properties(mod_sys PROPERTIES PREFIX "")
8
+target_link_libraries(mod_sys ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (mod_uri_SRCS
2
+ModUri.cpp
3
+)
4
+
5
+add_library(mod_uri SHARED ${mod_uri_SRCS})
6
+set_target_properties(mod_uri PROPERTIES OUTPUT_NAME "mod_uri")
7
+set_target_properties(mod_uri PROPERTIES PREFIX "")
8
+target_link_libraries(mod_uri ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (mod_utils_SRCS
2
+ModUtils.cpp
3
+)
4
+
5
+add_library(mod_utils SHARED ${mod_utils_SRCS})
6
+set_target_properties(mod_utils PROPERTIES OUTPUT_NAME "mod_utils")
7
+set_target_properties(mod_utils PROPERTIES PREFIX "")
8
+target_link_libraries(mod_utils ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,19 @@
1
+set (early_announce_SRCS
2
+EarlyAnnounce.cpp
3
+)
4
+
5
+add_library(early_announce SHARED ${early_announce_SRCS})
6
+set_target_properties(early_announce PROPERTIES OUTPUT_NAME "early_announce")
7
+set_target_properties(early_announce PROPERTIES PREFIX "")
8
+target_link_libraries(early_announce ${CMAKE_DL_LIBS} pthread m)
9
+
10
+IF(MYSQLPP_FOUND)
11
+IF(CMAKE_COMPILER_IS_GNUCC)
12
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_MYSQL -I/usr/include/mysql++ -I/usr/include/mysql")
13
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
14
+
15
+IF(CMAKE_COMPILER_IS_GNUCXX)
16
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_MYSQL -I/usr/include/mysql++ -I/usr/include/mysql")
17
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
18
+SET_TARGET_PROPERTIES(early_announce PROPERTIES LINK_FLAGS "${LINK_FLAGS} -lmysqlpp")
19
+ENDIF(MYSQLPP_FOUND)
0 20
new file mode 100644
... ...
@@ -0,0 +1,21 @@
1
+set (gateway_SRCS
2
+GWSession.cpp
3
+GatewayFactory.cpp
4
+mISDNChannel.cpp
5
+mISDNNames.cpp
6
+mISDNStack.cpp
7
+)
8
+
9
+IF(CMAKE_COMPILER_IS_GNUCC)
10
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DGW_VERSION='\"0.1\"'")
11
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
12
+
13
+IF(CMAKE_COMPILER_IS_GNUCXX)
14
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGW_VERSION='\"0.1\"'")
15
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
16
+
17
+add_library(gateway SHARED ${gateway_SRCS})
18
+set_target_properties(gateway PROPERTIES OUTPUT_NAME "gateway")
19
+set_target_properties(gateway PROPERTIES PREFIX "")
20
+target_link_libraries(gateway ${CMAKE_DL_LIBS} pthread m mISDN isdnnet)
21
+
0 22
new file mode 100644
... ...
@@ -0,0 +1,35 @@
1
+set (ivr_SRCS
2
+Ivr.cpp
3
+IvrAudio.cpp
4
+IvrAudioMixIn.cpp
5
+IvrDialogBase.cpp
6
+IvrSipDialog.cpp
7
+IvrSipReply.cpp
8
+IvrSipRequest.cpp
9
+IvrUAC.cpp
10
+)
11
+
12
+IF(CMAKE_COMPILER_IS_GNUCC)
13
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${PYTHON_INCLUDE_PATH}")
14
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
15
+
16
+IF(CMAKE_COMPILER_IS_GNUCXX)
17
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${PYTHON_INCLUDE_PATH}")
18
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
19
+
20
+add_library(ivr SHARED ${ivr_SRCS})
21
+set_target_properties(ivr PROPERTIES OUTPUT_NAME "ivr")
22
+set_target_properties(ivr PROPERTIES PREFIX "")
23
+target_link_libraries(ivr ${CMAKE_DL_LIBS} pthread m)
24
+
25
+IF(FLITE_FOUND)
26
+IF(CMAKE_COMPILER_IS_GNUCC)
27
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DIVR_WITH_TTS -I${FLITE_INCLUDE_DIR}/flite")
28
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
29
+
30
+IF(CMAKE_COMPILER_IS_GNUCXX)
31
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIVR_WITH_TTS -I${FLITE_INCLUDE_DIR}/flite")
32
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
33
+SET_TARGET_PROPERTIES(ivr PROPERTIES LINK_FLAGS "${LINK_FLAGS} -lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex -lflite")
34
+ENDIF(FLITE_FOUND)
35
+
0 36
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+set (monitoring_SRCS
2
+Monitoring.cpp
3
+)
4
+
5
+IF(CMAKE_COMPILER_IS_GNUCC)
6
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMOD_NAME=\"monitoring\"")
7
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
8
+
9
+IF(CMAKE_COMPILER_IS_GNUCXX)
10
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMOD_NAME='\"monitoring\"'")
11
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
12
+
13
+add_library(monitoring SHARED ${monitoring_SRCS})
14
+set_target_properties(monitoring PROPERTIES OUTPUT_NAME "monitoring")
15
+set_target_properties(monitoring PROPERTIES PREFIX "")
16
+target_link_libraries(monitoring ${CMAKE_DL_LIBS} pthread m)
17
+
0 18
new file mode 100644
... ...
@@ -0,0 +1,13 @@
1
+set (mp3_SRCS
2
+mp3.c
3
+)
4
+
5
+#ifeq ($(WITH_MPG123DECODER), yes)
6
+#	module_ldflags += -lmpg123
7
+#	module_cflags += -DWITH_MPG123DECODER
8
+
9
+add_library(mp3 SHARED ${mp3_SRCS})
10
+set_target_properties(mp3 PROPERTIES OUTPUT_NAME "mp3")
11
+set_target_properties(mp3 PROPERTIES PREFIX "")
12
+target_link_libraries(mp3 ${CMAKE_DL_LIBS} pthread m mp3lame)
13
+
0 14
new file mode 100644
... ...
@@ -0,0 +1,21 @@
1
+set (msg_storage_SRCS
2
+MsgStorage.cpp
3
+)
4
+
5
+#extra_install = spooldir
6
+#spooldir: 
7
+#	mkdir -p $(DESTDIR)/var/spool/voicebox
8
+
9
+IF(CMAKE_COMPILER_IS_GNUCC)
10
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMOD_NAME=\"msg_storage\"")
11
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
12
+
13
+IF(CMAKE_COMPILER_IS_GNUCXX)
14
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMOD_NAME='\"msg_storage\"'")
15
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
16
+
17
+add_library(msg_storage SHARED ${msg_storage_SRCS})
18
+set_target_properties(msg_storage PROPERTIES OUTPUT_NAME "msg_storage")
19
+set_target_properties(msg_storage PROPERTIES PREFIX "")
20
+target_link_libraries(msg_storage ${CMAKE_DL_LIBS} pthread m)
21
+
0 22
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+set (precoded_announce_SRCS
2
+PrecodedAnnounce.cpp
3
+)
4
+
5
+IF(CMAKE_COMPILER_IS_GNUCC)
6
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMOD_NAME=\"precoded_announce\"")
7
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
8
+
9
+IF(CMAKE_COMPILER_IS_GNUCXX)
10
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMOD_NAME='\"precoded_announce\"'")
11
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
12
+
13
+add_library(precoded_announce SHARED ${precoded_announce_SRCS})
14
+set_target_properties(precoded_announce PROPERTIES OUTPUT_NAME "precoded_announce")
15
+set_target_properties(precoded_announce PROPERTIES PREFIX "")
16
+target_link_libraries(precoded_announce ${CMAKE_DL_LIBS} pthread m)
17
+
0 18
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (reg_agent_SRCS
2
+RegistrationAgent.cpp
3
+)
4
+
5
+add_library(reg_agent SHARED ${reg_agent_SRCS})
6
+set_target_properties(reg_agent PROPERTIES OUTPUT_NAME "reg_agent")
7
+set_target_properties(reg_agent PROPERTIES PREFIX "")
8
+target_link_libraries(reg_agent ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,10 @@
1
+set (registrar_client_SRCS
2
+ContactInfo.cpp
3
+SIPRegistrarClient.cpp
4
+)
5
+
6
+add_library(registrar_client SHARED ${registrar_client_SRCS})
7
+set_target_properties(registrar_client PROPERTIES OUTPUT_NAME "registrar_client")
8
+set_target_properties(registrar_client PROPERTIES PREFIX "")
9
+target_link_libraries(registrar_client ${CMAKE_DL_LIBS} pthread m)
10
+
0 11
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (sw_prepaid_sip_SRCS
2
+SWPrepaidSIP.cpp
3
+)
4
+
5
+add_library(sw_prepaid_sip SHARED ${sw_prepaid_sip_SRCS})
6
+set_target_properties(sw_prepaid_sip PROPERTIES OUTPUT_NAME "sw_prepaid_sip")
7
+set_target_properties(sw_prepaid_sip PROPERTIES PREFIX "")
8
+target_link_libraries(sw_prepaid_sip ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,10 @@
1
+set (voicebox_SRCS
2
+Voicebox.cpp
3
+VoiceboxDialog.cpp
4
+)
5
+
6
+add_library(voicebox SHARED ${voicebox_SRCS})
7
+set_target_properties(voicebox PROPERTIES OUTPUT_NAME "voicebox")
8
+set_target_properties(voicebox PROPERTIES PREFIX "")
9
+target_link_libraries(voicebox ${CMAKE_DL_LIBS} pthread m)
10
+
0 11
new file mode 100644
... ...
@@ -0,0 +1,22 @@
1
+set (voicemail_SRCS
2
+AmMail.cpp
3
+AmSmtpClient.cpp
4
+AnswerMachine.cpp
5
+EmailTemplate.cpp
6
+)
7
+
8
+add_library(voicemail SHARED ${voicemail_SRCS})
9
+set_target_properties(voicemail PROPERTIES OUTPUT_NAME "voicemail")
10
+set_target_properties(voicemail PROPERTIES PREFIX "")
11
+target_link_libraries(voicemail ${CMAKE_DL_LIBS} pthread m)
12
+
13
+# Currently cannot be build with mysql++
14
+#IF(MYSQLPP_FOUND)
15
+#IF(CMAKE_COMPILER_IS_GNUCC)
16
+#	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_MYSQL -I/usr/include/mysql++ -I/usr/include/mysql")
17
+#ENDIF(CMAKE_COMPILER_IS_GNUCC)
18
+#IF(CMAKE_COMPILER_IS_GNUCXX)
19
+#	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_MYSQL -I/usr/include/mysql++ -I/usr/include/mysql")
20
+#ENDIF(CMAKE_COMPILER_IS_GNUCXX)
21
+#SET_TARGET_PROPERTIES(voicemail PROPERTIES LINK_FLAGS "${LINK_FLAGS} -lmysqlpp")
22
+#ENDIF(MYSQLPP_FOUND)
0 23
new file mode 100644
... ...
@@ -0,0 +1,12 @@
1
+set (webconference_SRCS
2
+CallStats.cpp
3
+RoomInfo.cpp
4
+WebConference.cpp
5
+WebConferenceDialog.cpp
6
+)
7
+
8
+add_library(webconference SHARED ${webconference_SRCS})
9
+set_target_properties(webconference PROPERTIES OUTPUT_NAME "webconference")
10
+set_target_properties(webconference PROPERTIES PREFIX "")
11
+target_link_libraries(webconference ${CMAKE_DL_LIBS} pthread m)
12
+
0 13
new file mode 100644
... ...
@@ -0,0 +1,27 @@
1
+set (xmlrpc2di_SRCS
2
+MultithreadXmlRpcServer.cpp
3
+TOXmlRpcClient.cpp
4
+XMLRPC2DI.cpp
5
+)
6
+
7
+ADD_SUBDIRECTORY (xmlrpc++)
8
+
9
+INCLUDE_DIRECTORIES (xmlrpc++/src)
10
+
11
+set_property(TARGET xmlrpcpp PROPERTY IMPORTED_LOCATION ./xmlrpc++/src/xmlrpcpp.a)
12
+
13
+add_library(xmlrpc2di SHARED ${xmlrpc2di_SRCS})
14
+set_target_properties(xmlrpc2di PROPERTIES OUTPUT_NAME "xmlrpc2di")
15
+set_target_properties(xmlrpc2di PROPERTIES PREFIX "")
16
+target_link_libraries(xmlrpc2di ${CMAKE_DL_LIBS} pthread m xmlrpcpp)
17
+
18
+IF(OPENSSL_FOUND)
19
+IF(CMAKE_COMPILER_IS_GNUCC)
20
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_XMLRPCPP_SSL -DXMLRPCPP_SUPPORT_STRUCT_ACCESS")
21
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
22
+
23
+IF(CMAKE_COMPILER_IS_GNUCXX)
24
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_XMLRPCPP_SSL -DXMLRPCPP_SUPPORT_STRUCT_ACCESS")
25
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
26
+SET_TARGET_PROPERTIES(xmlrpc2di PROPERTIES LINK_FLAGS "${LINK_FLAGS} -lssl")
27
+ENDIF(OPENSSL_FOUND)
0 28
new file mode 100644
... ...
@@ -0,0 +1 @@
1
+ADD_SUBDIRECTORY (src)
0 2
new file mode 100644
... ...
@@ -0,0 +1,27 @@
1
+set (xmlrpcpp_SRCS
2
+XmlRpcClient.cpp
3
+XmlRpcDispatch.cpp
4
+XmlRpcMutex.cpp
5
+XmlRpcServer.cpp
6
+XmlRpcServerConnection.cpp
7
+XmlRpcServerMethod.cpp
8
+XmlRpcSocket.cpp
9
+XmlRpcSource.cpp
10
+XmlRpcThread.cpp
11
+XmlRpcThreadedServer.cpp
12
+XmlRpcUtil.cpp
13
+XmlRpcValue.cpp
14
+)
15
+
16
+SET(CMAKE_VERBOSE_MAKEFILE ON)
17
+
18
+# Add your system-dependent network libs here. These are
19
+# only used to build the tests (your application will need them too).
20
+# Linux: none
21
+# Solaris: -lsocket -lnsl
22
+
23
+add_library(xmlrpcpp STATIC ${xmlrpcpp_SRCS})
24
+set_target_properties(xmlrpcpp PROPERTIES OUTPUT_NAME "xmlrpcpp")
25
+set_target_properties(xmlrpcpp PROPERTIES PREFIX "")
26
+target_link_libraries(xmlrpcpp ${CMAKE_DL_LIBS} pthread m)
27
+
... ...
@@ -49,7 +49,8 @@ SET (sems_SRCS
49 49
  sems.cpp
50 50
 )
51 51
 
52
-
52
+INCLUDE_DIRECTORIES (ampi)
53
+INCLUDE_DIRECTORIES (amci)
53 54
 
54 55
 ADD_EXECUTABLE (sems ${sems_SRCS})
55 56
 TARGET_LINK_LIBRARIES(sems ${CMAKE_DL_LIBS} pthread stdc++ m)
... ...
@@ -1,2 +1,19 @@
1
-ADD_SUBDIRECTORY (wav)
1
+ADD_SUBDIRECTORY (adpcm)
2
+ADD_SUBDIRECTORY (binrpcctrl)
3
+ADD_SUBDIRECTORY (echo)
4
+IF(SEMS_USE_SPANDSP)
5
+	ADD_SUBDIRECTORY (g722)
6
+ENDIF(SEMS_USE_SPANDSP)
7
+IF(GSM_FOUND)
8
+	ADD_SUBDIRECTORY (gsm)
9
+ENDIF(GSM_FOUND)
10
+ADD_SUBDIRECTORY (ilbc)
11
+ADD_SUBDIRECTORY (l16)
12
+ADD_SUBDIRECTORY (session_timer)
2 13
 ADD_SUBDIRECTORY (sipctrl)
14
+IF(SPEEX_FOUND)
15
+	ADD_SUBDIRECTORY (speex)
16
+ENDIF(SPEEX_FOUND)
17
+ADD_SUBDIRECTORY (stats)
18
+ADD_SUBDIRECTORY (uac_auth)
19
+ADD_SUBDIRECTORY (wav)
3 20
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+set (adpcm_SRCS
2
+g711.c
3
+g721.c
4
+g723_16.c
5
+g723_24.c
6
+g723_40.c
7
+g72x.c
8
+)
9
+
10
+add_library(adpcm SHARED ${adpcm_SRCS})
11
+set_target_properties(adpcm PROPERTIES OUTPUT_NAME "adpcm")
12
+set_target_properties(adpcm PROPERTIES PREFIX "")
13
+target_link_libraries(adpcm ${CMAKE_DL_LIBS} pthread m)
14
+
0 15
new file mode 100644
... ...
@@ -0,0 +1,19 @@
1
+set (binrpcctrl_SRCS
2
+BrpcCtrlInterface.cpp
3
+ConnPool.cpp
4
+CtrlServer.cpp
5
+)
6
+
7
+ADD_SUBDIRECTORY (libbinrpc)
8
+
9
+INCLUDE_DIRECTORIES (libbinrpc/include)
10
+
11
+set_property(TARGET libbinrpc PROPERTY IMPORTED_LOCATION ./libbinrpc/src/binrpcctrl.a)
12
+
13
+add_library(binrpcctrl SHARED ${binrpcctrl_SRCS})
14
+set_target_properties(binrpcctrl PROPERTIES OUTPUT_NAME "binrpcctrl")
15
+set_target_properties(binrpcctrl PROPERTIES PREFIX "")
16
+target_link_libraries(binrpcctrl ${CMAKE_DL_LIBS} pthread m libbinrpc)
17
+
18
+
19
+
0 20
new file mode 100644
... ...
@@ -0,0 +1 @@
1
+ADD_SUBDIRECTORY (src)
0 2
new file mode 100644
... ...
@@ -0,0 +1,47 @@
1
+set (libbinrpc_SRCS
2
+call.c
3
+cb.c
4
+dissector.c
5
+errno.c
6
+lock.c
7
+log.c
8
+mem.c
9
+net.c
10
+print.c
11
+time.c
12
+value.c
13
+)
14
+
15
+SET(CMAKE_VERBOSE_MAKEFILE ON)
16
+
17
+###
18
+# Used flags
19
+#
20
+# NDEBUG				:	release build
21
+# INT_AS_ID				:	allow integer records as attribute identifes 
22
+# 							(besides str)
23
+# DFIX_FALSE_GCC_WARNS	:	initialize some vars falsely signaled by GCC
24
+# 							(4.1.1) as potentially used without.
25
+# 							(some may be triggered by pointer usage without
26
+# 							'const' or 'restrict' keyword)
27
+# BINRPC_REENTRANT		:	enable thread local storage variables (set them 
28
+# 							global)
29
+# NOP_DFL_LOCKS			:	hollow locking; if not set and reentrant,
30
+# 							realtime's locking system will be used
31
+# BINRPC_VER1_COMPAT	:	compatibility with version 1 (TODO: :) )
32
+# USE_DEFAULT_SYSLOG	:	use syslog as default logger, instead of black
33
+# 							hole
34
+#
35
+IF(CMAKE_COMPILER_IS_GNUCC)
36
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DBINRPC_LIB_VER=\"1.0-1\" -D_LIBBINRPC_BUILD -DNDEBUG")
37
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
38
+
39
+IF(CMAKE_COMPILER_IS_GNUCXX)
40
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBINRPC_LIB_VER=\"1.0-1\" -D_LIBBINRPC_BUILD -DNDEBUG")
41
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
42
+
43
+add_library(libbinrpc STATIC ${libbinrpc_SRCS})
44
+set_target_properties(libbinrpc PROPERTIES OUTPUT_NAME "libbinrpc")
45
+set_target_properties(libbinrpc PROPERTIES PREFIX "")
46
+target_link_libraries(libbinrpc ${CMAKE_DL_LIBS} pthread m)
47
+
0 48
new file mode 100644
... ...
@@ -0,0 +1,10 @@
1
+set (echo_SRCS
2
+AmAudioEcho.cpp
3
+Echo.cpp
4
+)
5
+
6
+add_library(echo SHARED ${echo_SRCS})
7
+set_target_properties(echo PROPERTIES OUTPUT_NAME "echo")
8
+set_target_properties(echo PROPERTIES PREFIX "")
9
+target_link_libraries(echo ${CMAKE_DL_LIBS} pthread m)
10
+
0 11
new file mode 100644
... ...
@@ -0,0 +1,10 @@
1
+set (g722_SRCS
2
+g722.c
3
+)
4
+
5
+#module_cflags  = -ansi # -DNOFPU
6
+add_library(g722 SHARED ${g722_SRCS})
7
+set_target_properties(g722 PROPERTIES OUTPUT_NAME "g722")
8
+set_target_properties(g722 PROPERTIES PREFIX "")
9
+target_link_libraries(g722 ${CMAKE_DL_LIBS} pthread ${SPANDSP_LIBRARIES} m)
10
+
0 11
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (gsm_SRCS
2
+ gsm.c
3
+)
4
+
5
+add_library(gsm SHARED ${gsm_SRCS})
6
+set_target_properties(gsm PROPERTIES OUTPUT_NAME "gsm")
7
+set_target_properties(gsm PROPERTIES PREFIX "")
8
+target_link_libraries(gsm ${CMAKE_DL_LIBS} pthread ${GSM_LIBRARIES} m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,15 @@
1
+set (ilbc_SRCS
2
+ ilbc.c
3
+)
4
+
5
+ADD_SUBDIRECTORY (iLBC_rfc3951)
6
+
7
+INCLUDE_DIRECTORIES (iLBC_rfc3951)
8
+
9
+set_property(TARGET libilbc PROPERTY IMPORTED_LOCATION ./iLBC_rfc3951/ilbc.a)
10
+
11
+add_library(ilbc SHARED ${ilbc_SRCS})
12
+set_target_properties(ilbc PROPERTIES OUTPUT_NAME "ilbc")
13
+set_target_properties(ilbc PROPERTIES PREFIX "")
14
+target_link_libraries(ilbc ${CMAKE_DL_LIBS} pthread m libilbc)
15
+
0 16
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+set (ilbc_SRCS
2
+FrameClassify.c
3
+LPCdecode.c
4
+LPCencode.c
5
+StateConstructW.c
6
+StateSearchW.c
7
+anaFilter.c
8
+constants.c
9
+createCB.c
10
+doCPLC.c
11
+enhancer.c
12
+filter.c
13
+gainquant.c
14
+getCBvec.c
15
+helpfun.c
16
+hpInput.c
17
+hpOutput.c
18
+iCBConstruct.c
19
+iCBSearch.c
20
+iLBC_decode.c
21
+iLBC_encode.c
22
+lsf.c
23
+packing.c
24
+syntFilter.c
25
+)
26
+
27
+SET(CMAKE_VERBOSE_MAKEFILE ON)
28
+
29
+add_library(libilbc STATIC ${ilbc_SRCS})
30
+set_target_properties(libilbc PROPERTIES OUTPUT_NAME "ilbc")
31
+set_target_properties(libilbc PROPERTIES PREFIX "")
32
+target_link_libraries(libilbc ${CMAKE_DL_LIBS} pthread m)
33
+
0 34
new file mode 100644
... ...
@@ -0,0 +1,9 @@
1
+set (l16_SRCS
2
+ l16.c
3
+)
4
+
5
+add_library(l16 SHARED ${l16_SRCS})
6
+set_target_properties(l16 PROPERTIES OUTPUT_NAME "l16")
7
+set_target_properties(l16 PROPERTIES PREFIX "")
8
+target_link_libraries(l16 ${CMAKE_DL_LIBS} pthread m)
9
+
0 10
new file mode 100644
... ...
@@ -0,0 +1,10 @@
1
+set (session_timer_SRCS
2
+SessionTimer.cpp
3
+UserTimer.cpp
4
+)
5
+
6
+add_library(session_timer SHARED ${session_timer_SRCS})
7
+set_target_properties(session_timer PROPERTIES OUTPUT_NAME "session_timer")
8
+set_target_properties(session_timer PROPERTIES PREFIX "")
9
+target_link_libraries(session_timer ${CMAKE_DL_LIBS} pthread m)
10
+
... ...
@@ -22,4 +22,4 @@ set (sipctrl_SRCS
22 22
 
23 23
 add_library(sipctrl SHARED ${sipctrl_SRCS})
24 24
 set_target_properties(sipctrl PROPERTIES PREFIX "")
25
-target_link_libraries(sipctrl ${CMAKE_DL_LIBS} pthread stdc++ m)
25
+target_link_libraries(sipctrl ${CMAKE_DL_LIBS} pthread m)
26 26
new file mode 100644
... ...
@@ -0,0 +1,10 @@
1
+set (speex_SRCS
2
+ speex.c
3
+)
4
+
5
+# module_cflags  = -ansi # -DNOFPU
6
+add_library(speex SHARED ${speex_SRCS})
7
+set_target_properties(speex PROPERTIES OUTPUT_NAME "speex")
8
+set_target_properties(speex PROPERTIES PREFIX "")
9
+target_link_libraries(speex ${CMAKE_DL_LIBS} pthread ${SPEEX_LIBRARIES} m)
10
+
0 11
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+set (stats_SRCS
2
+Statistics.cpp
3
+StatsUDPServer.cpp
4
+)
5
+
6
+set (sems_stats_SRCS
7
+query_stats.cxx
8
+)
9
+
10
+ADD_EXECUTABLE (sems-stats ${sems_stats_SRCS})
11
+TARGET_LINK_LIBRARIES(sems-stats ${CMAKE_DL_LIBS} stdc++ m)
12
+
13
+add_library(stats SHARED ${stats_SRCS})
14
+set_target_properties(stats PROPERTIES OUTPUT_NAME "stats")
15
+set_target_properties(stats PROPERTIES PREFIX "")
16
+target_link_libraries(stats ${CMAKE_DL_LIBS} pthread m)
17
+
0 18
new file mode 100644
... ...
@@ -0,0 +1,10 @@
1
+set (uac_auth_SRCS
2
+md5.c
3
+UACAuth.cpp
4
+)
5
+
6
+add_library(uac_auth SHARED ${uac_auth_SRCS})
7
+set_target_properties(uac_auth PROPERTIES OUTPUT_NAME "uac_auth")
8
+set_target_properties(uac_auth PROPERTIES PREFIX "")
9
+target_link_libraries(uac_auth ${CMAKE_DL_LIBS} pthread m)
10
+
... ...
@@ -7,5 +7,5 @@ set (wav_SRCS
7 7
 add_library(wav SHARED ${wav_SRCS})
8 8
 set_target_properties(wav PROPERTIES OUTPUT_NAME "wav")
9 9
 set_target_properties(wav PROPERTIES PREFIX "")
10
-target_link_libraries(wav ${CMAKE_DL_LIBS} pthread stdc++ m)
10
+target_link_libraries(wav ${CMAKE_DL_LIBS} pthread m)
11 11