Show invite menu in wlm chat window immediately
[kdenetwork.git] / kopete / libkopete / CMakeLists.txt
blobfebda22ce924a01ae35e595ced4294d8177c7922
1 add_definitions(-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
3 add_subdirectory( private )
4 if(NOT WIN32)
5   add_subdirectory( avdevice )
6 endif(NOT WIN32)
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
20 if (Q_WS_X11)
21  if (X11_Xss_FOUND)
22   set(kopete_private_SRCS ${kopete_private_SRCS} private/kopeteidleplatform_x11.cpp )
23  else (X11_Xss_FOUND)
24   set(kopete_private_SRCS ${kopete_private_SRCS} private/kopeteidleplatform_dummy.cpp )
25  endif (X11_Xss_FOUND)
26 endif (Q_WS_X11)
27 if (Q_WS_MAC)
28  set(kopete_private_SRCS ${kopete_private_SRCS} private/kopeteidleplatform_mac.cpp )
29 endif (Q_WS_MAC)
30 if (Q_WS_WIN)
31  set(kopete_private_SRCS ${kopete_private_SRCS} private/kopeteidleplatform_win.cpp )
32 endif (Q_WS_WIN)
34 set(kopete_ui_SRCS
35   ui/accountselector.cpp
36   ui/addcontactpage.cpp
37   ui/addressbooklinkwidget.cpp
38   ui/addressbookselectordialog.cpp
39   ui/addressbookselectorwidget.cpp
40   ui/addresseeitem.cpp
41   ui/avatardialog.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
48   ui/kopetelistview.cpp
49   ui/kopetelistviewitem.cpp
50   ui/kopetelistviewsearchline.cpp
51   ui/kopetepasswordwidget.cpp
52   ui/kopetestdaction.cpp
53   ui/kopeteview.cpp
54   ui/kopeteviewplugin.cpp
55   ui/metacontactselectorwidget.cpp
56   ui/webcamwidget.cpp
59 set(kopete_contactlist_SRCS
60   contactlist/kopetecontactliststorage.cpp
61   contactlist/xmlcontactstorage.cpp
64 set(kopete_tasks_SRCS
65   tasks/kopetetask.cpp
66   tasks/kopetecontacttaskbase.cpp
67   tasks/kopetedeletecontacttask.cpp
70 set(kopete_LIB_SRCS
71    ${kopete_private_SRCS}
72    ${kopete_ui_SRCS}
73    ${kopete_contactlist_SRCS}
74    ${kopete_tasks_SRCS}
75    kabcpersistence.cpp
76    kopeteaccount.cpp
77    kopeteaccountmanager.cpp
78    kopeteavatarmanager.cpp
79    kopeteblacklister.cpp
80    kopetechatsession.cpp
81    kopetechatsessionmanager.cpp
82    kopetecommand.cpp
83    kopetecommandhandler.cpp
84    kopetecontact.cpp
85    kopetecontactlist.cpp
86    kopetecontactlistelement.cpp
87    kopeteproperty.cpp
88    kopeteglobal.cpp
89    kopetegroup.cpp
90    kopeteidentity.cpp
91    kopeteidentitymanager.cpp
92    kopetemessage.cpp
93    kopetemessageevent.cpp
94    kopetemessagehandlerchain.cpp
95    kopetemessagehandler.cpp
96    kopetemetacontact.cpp
97    kopetefileengine.cpp
98    kopetemimetypehandler.cpp
99    kopeteonlinestatus.cpp
100    kopeteonlinestatusmanager.cpp
101    kopetepassword.cpp
102    kopetepasswordedaccount.cpp
103    kopetepicture.cpp
104    kopeteplugin.cpp
105    kopetepluginmanager.cpp
106    kopeteproperties.cpp
107    kopetepropertycontainer.cpp
108    kopeteprotocol.cpp
109    kopetesimplemessagehandler.cpp
110    kopetestatusmessage.cpp
111    kopetetransfermanager.cpp
112    kopeteuiglobal.cpp
113    kopeteutils.cpp
114    kopetewalletmanager.cpp
115    networkstatuscommon.h
116    chatsessionmemberslistmodel.cpp
117    kopetestatusmanager.cpp
118    kopetestatusitems.cpp
119    kopeteidletimer.cpp
120    kopeteinfoeventmanager.cpp
121    kopeteinfoevent.cpp
122    kopeteaddedinfoevent.cpp
123 # REMOVED FOR NOW
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
143   )
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}
156     )
157 if(MSVC)
158   set_target_properties(kopete PROPERTIES
159       OUTPUT_NAME libkopete
160       )
161 endif(MSVC)
162 install(TARGETS kopete ${INSTALL_TARGETS_DEFAULT_ARGS})
165 ########### install files ###############
167 install(FILES
168  ${CMAKE_CURRENT_BINARY_DIR}/ui_kopeteawaydialogbase.h
169  ${CMAKE_CURRENT_BINARY_DIR}/ui_kopetepasswordwidgetbase.h
170  ui/accountselector.h
171  ui/addcontactpage.h
172  ui/addressbookselectordialog.h
173  ui/addressbookselectorwidget.h
174  ui/avatardialog.h
175  ui/avatarselectorwidget.h
176  ui/contactaddednotifydialog.h
177  ui/editaccountwidget.h
178  ui/kopetecontactaction.h
179  ui/kopeteinfodialog.h
180  ui/kopetelistview.h
181  ui/kopetelistviewitem.h
182  ui/kopetelistviewsearchline.h
183  ui/kopetepasswordwidget.h
184  ui/kopetestdaction.h
185  ui/kopeteview.h
186  ui/kopeteviewplugin.h
187 DESTINATION ${INCLUDE_INSTALL_DIR}/kopete/ui COMPONENT Devel )
190 install( FILES
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})
199 install( FILES
200   ${CMAKE_CURRENT_BINARY_DIR}/kopeteappearancesettings.h
201   ${CMAKE_CURRENT_BINARY_DIR}/kopetebehaviorsettings.h
202   ${CMAKE_CURRENT_BINARY_DIR}/kopetestatussettings.h
203   kabcpersistence.h
204   kopeteaccount.h
205   kopeteaccountmanager.h
206   kopeteavatarmanager.h
207   kopeteblacklister.h
208   kopetechatsession.h
209   kopetechatsessionmanager.h
210   kopetecommand.h
211   kopetecommandhandler.h
212   kopetecontact.h
213   kopetecontactlistelement.h
214   kopetecontactlist.h
215   kopeteproperty.h
216   kopete_export.h
217   kopeteglobal.h
218   kopetegroup.h
219   kopeteidentity.h
220   kopeteidentitymanager.h
221   kopeteinfoevent.h
222   kopetemessageevent.h
223   kopetemessage.h
224   kopetemessagehandlerchain.h
225   kopetemessagehandler.h
226   kopetemetacontact.h
227   kopetemimetypehandler.h
228   kopeteonlinestatus.h
229   kopeteonlinestatusmanager.h
230   kopetepasswordedaccount.h
231   kopetepassword.h
232   kopetepicture.h
233   kopeteplugin.h
234   kopetepluginmanager.h
235   kopeteprotocol.h
236   kopetepropertycontainer.h
237   kopetesimplemessagehandler.h
238   kopetestatusmessage.h
239   kopetetransfermanager.h
240   kopeteuiglobal.h
241   kopeteutils.h
242   kopeteversion.h
243   kopetestatusmanager.h
244   tasks/kopetetask.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} )