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
|
# QML plugin
set(plugin_SRCS
abstractloggermodel.cpp
calllogmodel.cpp
calllogproxymodel.cpp
contactaddress.cpp
contactcustomid.cpp
contactdetail.cpp
contactemailaddress.cpp
contactentry.cpp
contactmodel.cpp
contactname.cpp
contactonlineaccount.cpp
contactphonenumber.cpp
contactproxymodel.cpp
components.cpp
channelhandler.cpp
channelobserver.cpp
chatmanager.cpp
callentry.cpp
callmanager.cpp
conversationlogmodel.cpp
messagelogmodel.cpp
messagesproxymodel.cpp
telepathyhelper.cpp
buttonmaskeffect.cpp
)
set(plugin_HDRS
abstractloggermodel.h
calllogmodel.h
calllogproxymodel.h
contactaddress.h
contactdetail.h
contactemailaddress.h
contactentry.h
contactmodel.h
contactname.h
contactonlineaccount.h
contactphonenumber.h
contactproxymodel.h
components.h
channelhandler.h
channelobserver.h
chatmanager.h
callentry.h
callmanager.h
conversationlogmodel.h
messagelogmodel.h
messagesproxymodel.h
telepathyhelper.h
buttonmaskeffect.h
)
qt4_wrap_cpp(plugin_MOC_SRCS ${plugin_HDRS})
include_directories(
${QT_QTCORE_INCLUDE_DIR}
${QT_QTGUI_INCLUDE_DIR}
${QT_QTDECLARATIVE_INCLUDE_DIR}
${QTMOBILITY_CONTACTS_INCLUDE_DIR}
${QTMOBILITY_INCLUDE_DIR}
${TP_QT4_INCLUDE_DIRS}
${TPL_QT4_INCLUDE_DIRS}
${GLIB_INCLUDE_DIRS}
)
add_library(telephony-qml SHARED ${plugin_SRCS} ${plugin_HDRS} ${plugin_MOC_SRCS})
target_link_libraries(telephony-qml
${QT_QTCORE_LIBRARIES}
${QT_QTDECLARATIVE_LIBRARIES}
${QTMOBILITY_CONTACTS_LIBRARY}
${TP_QT4_LIBRARIES}
${TPL_QT4_LIBRARIES}
${GLIB_LIBRARIES}
)
set(PLUGIN_DIR ${QT_IMPORTS_DIR}/TelephonyApp)
install(TARGETS telephony-qml DESTINATION ${PLUGIN_DIR})
install(FILES qmldir DESTINATION ${PLUGIN_DIR})
add_subdirectory(tests)
|