1 add_definitions(-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
3 add_subdirectory( private )
5 add_subdirectory( avdevice )
7 add_subdirectory( tests )
9 include_directories( ${KOPETE_INCLUDES} )
11 ########### next target ###############
13 set(kopete_private_SRCS
14 private/kopeteemoticons.cpp
15 private/kopeteutils_private.cpp
16 private/kopeteviewmanager.cpp
17 private/kopeteactivenotification.cpp
22 set(kopete_private_SRCS ${kopete_private_SRCS} private/kopeteidleplatform_x11.cpp )
24 set(kopete_private_SRCS ${kopete_private_SRCS} private/kopeteidleplatform_dummy.cpp )
28 set(kopete_private_SRCS ${kopete_private_SRCS} private/kopeteidleplatform_mac.cpp )
31 set(kopete_private_SRCS ${kopete_private_SRCS} private/kopeteidleplatform_win.cpp )
35 ui/accountselector.cpp
37 ui/addressbooklinkwidget.cpp
38 ui/addressbookselectordialog.cpp
39 ui/addressbookselectorwidget.cpp
42 ui/avatarselectorwidget.cpp
43 ui/contactaddednotifydialog.cpp
44 ui/collapsiblewidget.cpp
45 ui/editaccountwidget.cpp
46 ui/kopetecontactaction.cpp
47 ui/kopeteinfodialog.cpp
49 ui/kopetelistviewitem.cpp
50 ui/kopetelistviewsearchline.cpp
51 ui/kopetepasswordwidget.cpp
52 ui/kopetestdaction.cpp
54 ui/kopeteviewplugin.cpp
55 ui/metacontactselectorwidget.cpp
59 set(kopete_contactlist_SRCS
60 contactlist/kopetecontactliststorage.cpp
61 contactlist/xmlcontactstorage.cpp
66 tasks/kopetecontacttaskbase.cpp
67 tasks/kopetedeletecontacttask.cpp
71 ${kopete_private_SRCS}
73 ${kopete_contactlist_SRCS}
77 kopeteaccountmanager.cpp
78 kopeteavatarmanager.cpp
81 kopetechatsessionmanager.cpp
83 kopetecommandhandler.cpp
86 kopetecontactlistelement.cpp
91 kopeteidentitymanager.cpp
93 kopetemessageevent.cpp
94 kopetemessagehandlerchain.cpp
95 kopetemessagehandler.cpp
98 kopetemimetypehandler.cpp
99 kopeteonlinestatus.cpp
100 kopeteonlinestatusmanager.cpp
102 kopetepasswordedaccount.cpp
105 kopetepluginmanager.cpp
107 kopetepropertycontainer.cpp
109 kopetesimplemessagehandler.cpp
110 kopetestatusmessage.cpp
111 kopetetransfermanager.cpp
114 kopetewalletmanager.cpp
115 networkstatuscommon.h
116 chatsessionmemberslistmodel.cpp
117 kopetestatusmanager.cpp
118 kopetestatusitems.cpp
120 kopeteinfoeventmanager.cpp
122 kopeteaddedinfoevent.cpp
124 # connectionmanager.cpp
125 # managedconnectionaccount.cpp
129 kde4_add_ui_files(kopete_LIB_SRCS
130 ui/addressbooklinkwidget_base.ui
131 ui/addressbookselectorwidget_base.ui
132 ui/avatarselectorwidget.ui
133 ui/contactaddednotifywidget.ui
134 ui/kopeteawaydialogbase.ui
135 ui/kopetepasswordwidgetbase.ui
136 ui/metacontactselectorwidget_base.ui
139 kde4_add_kcfg_files(kopete_LIB_SRCS GENERATE_MOC
140 kopeteappearancesettings.kcfgc
141 kopetebehaviorsettings.kcfgc
142 kopetestatussettings.kcfgc
145 kde4_add_library(kopete SHARED ${kopete_LIB_SRCS})
147 target_link_libraries(kopete ${KDE4_KUTILS_LIBS} ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KABC_LIBS} ${KDE4_SOLID_LIBS} ${X11_LIBRARIES})
149 if(Q_WS_X11 AND X11_Xss_FOUND)
150 target_link_libraries(kopete ${X11_Xss_LIB})
151 endif(Q_WS_X11 AND X11_Xss_FOUND)
153 set_target_properties(kopete PROPERTIES
154 VERSION ${GENERIC_LIB_VERSION}
155 SOVERSION ${GENERIC_LIB_SOVERSION}
158 set_target_properties(kopete PROPERTIES
159 OUTPUT_NAME libkopete
162 install(TARGETS kopete ${INSTALL_TARGETS_DEFAULT_ARGS})
165 ########### install files ###############
168 ${CMAKE_CURRENT_BINARY_DIR}/ui_kopeteawaydialogbase.h
169 ${CMAKE_CURRENT_BINARY_DIR}/ui_kopetepasswordwidgetbase.h
172 ui/addressbookselectordialog.h
173 ui/addressbookselectorwidget.h
175 ui/avatarselectorwidget.h
176 ui/contactaddednotifydialog.h
177 ui/editaccountwidget.h
178 ui/kopetecontactaction.h
179 ui/kopeteinfodialog.h
181 ui/kopetelistviewitem.h
182 ui/kopetelistviewsearchline.h
183 ui/kopetepasswordwidget.h
186 ui/kopeteviewplugin.h
187 DESTINATION ${INCLUDE_INSTALL_DIR}/kopete/ui COMPONENT Devel )
191 kopeteappearancesettings.kcfg
192 kopetebehaviorsettings.kcfg
193 kopetestatussettings.kcfg
194 DESTINATION ${KCFG_INSTALL_DIR})
196 install( FILES kopetecommandui.rc DESTINATION ${DATA_INSTALL_DIR}/kopete)
197 install( FILES kopeteplugin.desktop kopeteprotocol.desktop kopeteui.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
200 ${CMAKE_CURRENT_BINARY_DIR}/kopeteappearancesettings.h
201 ${CMAKE_CURRENT_BINARY_DIR}/kopetebehaviorsettings.h
202 ${CMAKE_CURRENT_BINARY_DIR}/kopetestatussettings.h
205 kopeteaccountmanager.h
206 kopeteavatarmanager.h
209 kopetechatsessionmanager.h
211 kopetecommandhandler.h
213 kopetecontactlistelement.h
220 kopeteidentitymanager.h
224 kopetemessagehandlerchain.h
225 kopetemessagehandler.h
227 kopetemimetypehandler.h
229 kopeteonlinestatusmanager.h
230 kopetepasswordedaccount.h
234 kopetepluginmanager.h
236 kopetepropertycontainer.h
237 kopetesimplemessagehandler.h
238 kopetestatusmessage.h
239 kopetetransfermanager.h
243 kopetestatusmanager.h
245 tasks/kopetecontacttaskbase.h
246 tasks/kopetedeletecontacttask.h
247 private/kopeteemoticons.h
248 DESTINATION ${INCLUDE_INSTALL_DIR}/kopete COMPONENT Devel)
250 install( FILES org.kde.kopete.Client.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )