blob: 11c79f64d4f2bcfb4d73692e038fdceeef39b4ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
project(libtwinkle)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
add_subdirectory(audio)
if (NOT WITH_GSM)
add_subdirectory(audio/gsm/src)
endif (NOT WITH_GSM)
add_subdirectory(audits)
add_subdirectory(im)
add_subdirectory(mwi)
add_subdirectory(parser)
add_subdirectory(patterns)
add_subdirectory(presence)
add_subdirectory(sdp)
add_subdirectory(sockets)
add_subdirectory(stun)
add_subdirectory(threads)
add_subdirectory(utils)
set(LIBTWINKLE_SRCS
abstract_dialog.cpp
address_book.cpp
auth.cpp
call_history.cpp
call_script.cpp
client_request.cpp
cmd_socket.cpp
dialog.cpp
diamondcard.cpp
epa.cpp
events.cpp
id_object.cpp
line.cpp
listener.cpp
log.cpp
phone.cpp
phone_user.cpp
prohibit_thread.cpp
redirect.cpp
sender.cpp
service.cpp
session.cpp
sub_refer.cpp
subscription.cpp
subscription_dialog.cpp
sys_settings.cpp
timekeeper.cpp
transaction.cpp
transaction_layer.cpp
transaction_mgr.cpp
user.cpp
userintf.cpp
util.cpp
)
add_library(libtwinkle OBJECT ${LIBTWINKLE_SRCS})
set(twinkle_OBJS
$<TARGET_OBJECTS:libtwinkle>
$<TARGET_OBJECTS:libtwinkle-audio>
$<TARGET_OBJECTS:libtwinkle-audits>
$<TARGET_OBJECTS:libtwinkle-im>
$<TARGET_OBJECTS:libtwinkle-mwi>
$<TARGET_OBJECTS:libtwinkle-parser>
$<TARGET_OBJECTS:libtwinkle-patterns>
$<TARGET_OBJECTS:libtwinkle-presence>
$<TARGET_OBJECTS:libtwinkle-sdp>
$<TARGET_OBJECTS:libtwinkle-sockets>
$<TARGET_OBJECTS:libtwinkle-stun>
$<TARGET_OBJECTS:libtwinkle-threads>
$<TARGET_OBJECTS:libtwinkle-utils>
)
if (NOT WITH_GSM)
list(APPEND twinkle_OBJS $<TARGET_OBJECTS:libtwinkle-gsm>)
endif (NOT WITH_GSM)
add_executable(twinkle-console
main.cpp
${twinkle_OBJS}
)
set(twinkle_LIBS
-lpthread
-lresolv
${LibMagic_LIBRARY}
${LIBXML2_LIBRARIES}
${Readline_LIBRARY}
${ILBC_LIBRARIES}
${SPEEX_LIBRARIES}
${ZRTPCPP_LIBRARIES}
${CCRTP_LIBRARIES}
${COMMONCPP_LIBRARIES}
${UCOMMON_LIBRARIES}
${LIBSNDFILE_LIBRARY}
${ALSA_LIBRARY}
${G729_LIBRARY}
)
if (WITH_GSM)
list(APPEND twinkle_LIBS ${GSM_LIBRARY})
endif (WITH_GSM)
if (WITH_QT4 OR WITH_QT5)
add_subdirectory(gui)
endif (WITH_QT4 OR WITH_QT5)
target_link_libraries(twinkle-console ${twinkle_LIBS})
install(TARGETS twinkle-console DESTINATION bin)
|