Browse code

Some cleanups. Since not, core module will be linked against samplerate and misdn (if enabled)

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

Peter Lemenkov authored on 13/05/2009 11:26:55
Showing 50 changed files
... ...
@@ -41,8 +41,6 @@ IF(SEMS_USE_SPANDSP)
41 41
 		SET(SPANDSP_FOUND TRUE)
42 42
 		MESSAGE(STATUS "Found spandsp includes:	${SPANDSP_INCLUDE_DIR}/spandsp.h")
43 43
 		MESSAGE(STATUS "Found spandsp library: ${SPANDSP_LIBRARIES}")
44
-		SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_SPANDSP -D__STDC_LIMIT_MACROS")
45
-		SET(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -DUSE_SPANDSP -D__STDC_LIMIT_MACROS")
46 44
 		MESSAGE(STATUS "Using spandsp: YES")
47 45
 	ELSE(SPANDSP_INCLUDE_DIR AND SPANDSP_LIBRARIES)
48 46
 		SET(SPANDSP_FOUND FALSE)
... ...
@@ -62,8 +60,6 @@ IF(SEMS_USE_LIBSAMPLERATE)
62 62
 		SET(LIBSAMPLERATE_FOUND TRUE)
63 63
 		MESSAGE(STATUS "Found libsamplerate includes: ${LIBSAMPLERATE_INCLUDE_DIR}/samplerate.h")
64 64
 		MESSAGE(STATUS "Found libsamplerate library: ${LIBSAMPLERATE_LIBRARIES}")
65
-		SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_LIBSAMPLERATE")
66
-		SET(CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -DUSE_LIBSAMPLERATE")
67 65
 		MESSAGE(STATUS "Using libsamplerate: YES")
68 66
 	ELSE(LIBSAMPLERATE_INCLUDE_DIR AND LIBSAMPLERATE_LIBRARIES)
69 67
 		SET(LIBSAMPLERATE_FOUND FALSE)
... ...
@@ -2,8 +2,8 @@ set (ann_b2b_SRCS
2 2
 AnnounceB2B.cpp
3 3
 )
4 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)
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 9
 
... ...
@@ -2,8 +2,8 @@ set (announce_transfer_SRCS
2 2
 AnnounceTransfer.cpp
3 3
 )
4 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)
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 9
 
... ...
@@ -2,8 +2,8 @@ set (announcement_SRCS
2 2
 Announcement.cpp
3 3
 )
4 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)
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 9
 
... ...
@@ -2,8 +2,8 @@ set (annrecorder_SRCS
2 2
 AnnRecorder.cpp
3 3
 )
4 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)
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 9
 
... ...
@@ -10,8 +10,8 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
10 10
 	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMOD_NAME='\"auth_b2b\"'")
11 11
 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
12 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)
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 17
 
... ...
@@ -10,8 +10,8 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
10 10
 	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMOD_NAME='\"call_timer\"'")
11 11
 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
12 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)
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 17
 
... ...
@@ -10,8 +10,8 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
10 10
 	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMOD_NAME='\"callback\"'")
11 11
 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
12 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)
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 17
 
... ...
@@ -2,8 +2,8 @@ set (click2dial_SRCS
2 2
 Click2Dial.cpp
3 3
 )
4 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)
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 9
 
... ...
@@ -2,29 +2,29 @@ set (conference_SRCS
2 2
 Conference.cpp
3 3
 )
4 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)
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 9
 
10 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)
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 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")
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
+	TARGET_LINK_LIBRARIES(conference ${CMAKE_DL_LIBS} flite_cmu_us_kal flite_usenglish flite_cmulex flite)
19 19
 ENDIF(FLITE_FOUND AND ZRTP_FOUND)
20 20
 
21 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)
22
+	IF(CMAKE_COMPILER_IS_GNUCC)
23
+		SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_MYSQL -I${MYSQLPP_INCLUDE_DIR}/mysql++ -I/usr/include/mysql")
24
+	ENDIF(CMAKE_COMPILER_IS_GNUCC)
25 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")
26
+	IF(CMAKE_COMPILER_IS_GNUCXX)
27
+		SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_MYSQL -I${MYSQLPP_INCLUDE_DIR}/mysql++ -I/usr/include/mysql")
28
+	ENDIF(CMAKE_COMPILER_IS_GNUCXX)
29
+	TARGET_LINK_LIBRARIES(conference ${CMAKE_DL_LIBS} mysqlpp)
30 30
 ENDIF(MYSQLPP_FOUND)
... ...
@@ -6,20 +6,20 @@ ServerConnection.cpp
6 6
 ADD_SUBDIRECTORY (lib_dbase)
7 7
 INCLUDE_DIRECTORIES (lib_dbase)
8 8
 
9
-set_property(TARGET libdbase PROPERTY IMPORTED_LOCATION ./lib_dbase/libdbase.a)
9
+SET_PROPERTY(TARGET libdbase PROPERTY IMPORTED_LOCATION ./lib_dbase/libdbase.a)
10 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)
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 15
 
16 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)
17
+	IF(CMAKE_COMPILER_IS_GNUCC)
18
+		SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWITH_OPENSSL")
19
+	ENDIF(CMAKE_COMPILER_IS_GNUCC)
20 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")
21
+	IF(CMAKE_COMPILER_IS_GNUCXX)
22
+		SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWITH_OPENSSL")
23
+	ENDIF(CMAKE_COMPILER_IS_GNUCXX)
24
+	TARGET_LINK_LIBRARIES(diameter_client ${CMAKE_DL_LIBS} ssl crypto)
25 25
 ENDIF(OPENSSL_FOUND)
... ...
@@ -14,8 +14,8 @@ INCLUDE_DIRECTORIES (.)
14 14
 
15 15
 ADD_SUBDIRECTORY (mods)
16 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)
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 21
 
... ...
@@ -6,6 +6,7 @@ ENDIF(SEMS_USE_MONITORING)
6 6
 IF(MYSQLPP_FOUND)
7 7
 	ADD_SUBDIRECTORY (mod_mysql)
8 8
 ENDIF(MYSQLPP_FOUND)
9
+#ADD_SUBDIRECTORY (mod_py)
9 10
 ADD_SUBDIRECTORY (mod_sys)
10 11
 ADD_SUBDIRECTORY (mod_uri)
11 12
 ADD_SUBDIRECTORY (mod_utils)
... ...
@@ -2,8 +2,8 @@ set (mod_conference_SRCS
2 2
 ModConference.cpp
3 3
 )
4 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)
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 9
 
... ...
@@ -2,8 +2,8 @@ set (mod_dlg_SRCS
2 2
 ModDlg.cpp
3 3
 )
4 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)
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 9
 
... ...
@@ -2,8 +2,8 @@ set (mod_monitoring_SRCS
2 2
 ModMonitoring.cpp
3 3
 )
4 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)
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 9
 
... ...
@@ -10,8 +10,8 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
10 10
 	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/include/mysql++ -I/usr/include/mysql")
11 11
 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
12 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)
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 17
 
... ...
@@ -2,8 +2,8 @@ set (mod_sys_SRCS
2 2
 ModSys.cpp
3 3
 )
4 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)
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 9
 
... ...
@@ -2,8 +2,8 @@ set (mod_uri_SRCS
2 2
 ModUri.cpp
3 3
 )
4 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)
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 9
 
... ...
@@ -2,8 +2,8 @@ set (mod_utils_SRCS
2 2
 ModUtils.cpp
3 3
 )
4 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)
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 9
 
... ...
@@ -2,18 +2,18 @@ set (early_announce_SRCS
2 2
 EarlyAnnounce.cpp
3 3
 )
4 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)
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 9
 
10 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)
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 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")
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
+	TARGET_LINK_LIBRARIES(early_announce ${CMAKE_DL_LIBS} mysqlpp)
19 19
 ENDIF(MYSQLPP_FOUND)
... ...
@@ -14,8 +14,8 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
14 14
 	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGW_VERSION='\"0.1\"'")
15 15
 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
16 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)
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 21
 
... ...
@@ -17,19 +17,19 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
17 17
 	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${PYTHON_INCLUDE_PATH}")
18 18
 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
19 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)
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 24
 
25 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)
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 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")
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
+	TARGET_LINK_LIBRARIES(ivr ${CMAKE_DL_LIBS} flite_cmu_us_kal flite_usenglish flite_cmulex flite)
34 34
 ENDIF(FLITE_FOUND)
35 35
 
... ...
@@ -10,8 +10,8 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
10 10
 	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMOD_NAME='\"monitoring\"'")
11 11
 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
12 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)
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 17
 
... ...
@@ -6,8 +6,8 @@ mp3.c
6 6
 #	module_ldflags += -lmpg123
7 7
 #	module_cflags += -DWITH_MPG123DECODER
8 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)
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 13
 
... ...
@@ -14,8 +14,8 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
14 14
 	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMOD_NAME='\"msg_storage\"'")
15 15
 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
16 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)
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 21
 
... ...
@@ -10,8 +10,8 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
10 10
 	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMOD_NAME='\"precoded_announce\"'")
11 11
 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
12 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)
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 17
 
... ...
@@ -2,8 +2,8 @@ set (reg_agent_SRCS
2 2
 RegistrationAgent.cpp
3 3
 )
4 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)
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 9
 
... ...
@@ -3,8 +3,8 @@ ContactInfo.cpp
3 3
 SIPRegistrarClient.cpp
4 4
 )
5 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)
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 10
 
... ...
@@ -2,8 +2,8 @@ set (sw_prepaid_sip_SRCS
2 2
 SWPrepaidSIP.cpp
3 3
 )
4 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)
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 9
 
... ...
@@ -3,8 +3,8 @@ Voicebox.cpp
3 3
 VoiceboxDialog.cpp
4 4
 )
5 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)
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 10
 
... ...
@@ -5,18 +5,18 @@ AnswerMachine.cpp
5 5
 EmailTemplate.cpp
6 6
 )
7 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)
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 12
 
13 13
 # Currently cannot be build with mysql++
14 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")
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
+#	TARGET_LINK_LIBRARIES(voicemail ${CMAKE_DL_LIBS} mysqlpp)
22 22
 #ENDIF(MYSQLPP_FOUND)
... ...
@@ -5,8 +5,8 @@ WebConference.cpp
5 5
 WebConferenceDialog.cpp
6 6
 )
7 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)
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 12
 
... ...
@@ -8,20 +8,20 @@ ADD_SUBDIRECTORY (xmlrpc++)
8 8
 
9 9
 INCLUDE_DIRECTORIES (xmlrpc++/src)
10 10
 
11
-set_property(TARGET xmlrpcpp PROPERTY IMPORTED_LOCATION ./xmlrpc++/src/xmlrpcpp.a)
11
+SET_PROPERTY(TARGET xmlrpcpp PROPERTY IMPORTED_LOCATION ./xmlrpc++/src/xmlrpcpp.a)
12 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)
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 17
 
18 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)
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 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")
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
+	TARGET_LINK_LIBRARIES(xmlrpc2di ${CMAKE_DL_LIBS} ssl)
27 27
 ENDIF(OPENSSL_FOUND)
... ...
@@ -55,4 +55,27 @@ INCLUDE_DIRECTORIES (amci)
55 55
 ADD_EXECUTABLE (sems ${sems_SRCS})
56 56
 TARGET_LINK_LIBRARIES(sems ${CMAKE_DL_LIBS} pthread stdc++ m)
57 57
 
58
+IF(SPANDSP_FOUND)
59
+	IF(CMAKE_COMPILER_IS_GNUCC)
60
+		SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_SPANDSP -D__STDC_LIMIT_MACROS")
61
+	ENDIF(CMAKE_COMPILER_IS_GNUCC)
62
+
63
+	IF(CMAKE_COMPILER_IS_GNUCXX)
64
+		SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_SPANDSP -D__STDC_LIMIT_MACROS")
65
+	ENDIF(CMAKE_COMPILER_IS_GNUCXX)
66
+	TARGET_LINK_LIBRARIES(sems ${CMAKE_DL_LIBS} spandsp)
67
+ENDIF(SPANDSP_FOUND)
68
+
69
+IF(LIBSAMPLERATE_FOUND)
70
+	IF(CMAKE_COMPILER_IS_GNUCC)
71
+		SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_LIBSAMPLERATE")
72
+	ENDIF(CMAKE_COMPILER_IS_GNUCC)
73
+
74
+	IF(CMAKE_COMPILER_IS_GNUCXX)
75
+		SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_LIBSAMPLERATE")
76
+	ENDIF(CMAKE_COMPILER_IS_GNUCXX)
77
+	TARGET_LINK_LIBRARIES(sems ${CMAKE_DL_LIBS} samplerate)
78
+ENDIF(LIBSAMPLERATE_FOUND)
79
+
58 80
 ADD_SUBDIRECTORY(plug-in)
81
+
... ...
@@ -7,8 +7,8 @@ g723_40.c
7 7
 g72x.c
8 8
 )
9 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)
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 14
 
... ...
@@ -8,12 +8,12 @@ ADD_SUBDIRECTORY (libbinrpc)
8 8
 
9 9
 INCLUDE_DIRECTORIES (libbinrpc/include)
10 10
 
11
-set_property(TARGET libbinrpc PROPERTY IMPORTED_LOCATION ./libbinrpc/src/binrpcctrl.a)
11
+SET_PROPERTY(TARGET libbinrpc PROPERTY IMPORTED_LOCATION ./libbinrpc/src/binrpcctrl.a)
12 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)
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 17
 
18 18
 
19 19
 
... ...
@@ -40,8 +40,8 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
40 40
 	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBINRPC_LIB_VER=\"1.0-1\" -D_LIBBINRPC_BUILD -DNDEBUG")
41 41
 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
42 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)
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 47
 
... ...
@@ -3,8 +3,8 @@ AmAudioEcho.cpp
3 3
 Echo.cpp
4 4
 )
5 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)
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 10
 
... ...
@@ -3,8 +3,8 @@ g722.c
3 3
 )
4 4
 
5 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)
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 10
 
... ...
@@ -2,8 +2,8 @@ set (gsm_SRCS
2 2
  gsm.c
3 3
 )
4 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)
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 9
 
... ...
@@ -6,10 +6,10 @@ ADD_SUBDIRECTORY (iLBC_rfc3951)
6 6
 
7 7
 INCLUDE_DIRECTORIES (iLBC_rfc3951)
8 8
 
9
-set_property(TARGET libilbc PROPERTY IMPORTED_LOCATION ./iLBC_rfc3951/ilbc.a)
9
+SET_PROPERTY(TARGET libilbc PROPERTY IMPORTED_LOCATION ./iLBC_rfc3951/ilbc.a)
10 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)
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 15
 
... ...
@@ -26,8 +26,8 @@ syntFilter.c
26 26
 
27 27
 SET(CMAKE_VERBOSE_MAKEFILE ON)
28 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)
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 33
 
... ...
@@ -2,8 +2,8 @@ set (l16_SRCS
2 2
  l16.c
3 3
 )
4 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)
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 9
 
... ...
@@ -3,8 +3,8 @@ SessionTimer.cpp
3 3
 UserTimer.cpp
4 4
 )
5 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)
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 10
 
... ...
@@ -20,6 +20,7 @@ set (sipctrl_SRCS
20 20
   wheeltimer.cpp
21 21
 )
22 22
 
23
-add_library(sipctrl SHARED ${sipctrl_SRCS})
24
-set_target_properties(sipctrl PROPERTIES PREFIX "")
25
-target_link_libraries(sipctrl ${CMAKE_DL_LIBS} pthread m)
23
+ADD_LIBRARY(sipctrl SHARED ${sipctrl_SRCS})
24
+SET_TARGET_PROPERTIES(sipctrl PROPERTIES OUTPUT_NAME "sipctrl")
25
+SET_TARGET_PROPERTIES(sipctrl PROPERTIES PREFIX "")
26
+TARGET_LINK_LIBRARIES(sipctrl ${CMAKE_DL_LIBS} pthread m)
... ...
@@ -3,8 +3,8 @@ set (speex_SRCS
3 3
 )
4 4
 
5 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)
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 10
 
... ...
@@ -10,8 +10,8 @@ query_stats.cxx
10 10
 ADD_EXECUTABLE (sems-stats ${sems_stats_SRCS})
11 11
 TARGET_LINK_LIBRARIES(sems-stats ${CMAKE_DL_LIBS} stdc++ m)
12 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)
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 17
 
... ...
@@ -3,8 +3,8 @@ md5.c
3 3
 UACAuth.cpp
4 4
 )
5 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)
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 10
 
... ...
@@ -4,8 +4,8 @@ set (wav_SRCS
4 4
  wav_hdr.c
5 5
 )
6 6
 
7
-add_library(wav SHARED ${wav_SRCS})
8
-set_target_properties(wav PROPERTIES OUTPUT_NAME "wav")
9
-set_target_properties(wav PROPERTIES PREFIX "")
10
-target_link_libraries(wav ${CMAKE_DL_LIBS} pthread m)
7
+ADD_LIBRARY(wav SHARED ${wav_SRCS})
8
+SET_TARGET_PROPERTIES(wav PROPERTIES OUTPUT_NAME "wav")
9
+SET_TARGET_PROPERTIES(wav PROPERTIES PREFIX "")
10
+TARGET_LINK_LIBRARIES(wav ${CMAKE_DL_LIBS} pthread m)
11 11