Remove KActionCollection::setComponentData: this does not work on a KActionCollection...
[kdepim.git] / libkdepim / CMakeLists.txt
blob767928deafc6f5633a09674ac6bfa5dfc913ea92
1 KDE4_NO_ENABLE_FINAL(libkdepim)
2 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" )
4 add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5300)
6 add_subdirectory(tests)
7 add_subdirectory(pics)
9 add_definitions(${QT_QTDBUS_DEFINITIONS})
11 include_directories( ${Boost_INCLUDE_DIR} )
13 option(KDEPIM_INPROCESS_LDAP FALSE "Use in-process rather than KIO slave LDAP" )
14 if (KDEPIM_INPROCESS_LDAP)
15   add_definitions( -DKDEPIM_INPROCESS_LDAP )
16 endif ()
18 ########### next target ###############
20 set(kdepim_LIB_SRCS
21    addemailaddressjob.cpp
22    addcontactjob.cpp
23    completionordereditor.cpp
24    openemailaddressjob.cpp
25    ktimeedit.cpp
26    kprefsdialog.cpp
27    kdateedit.cpp
28    maillistdrag.cpp
29    addresseelineedit.cpp
30    kdatepickerpopup.cpp
31    kcheckcombobox.cpp
32    kweekdaycheckcombo.cpp
33    ldap/ldapclient.cpp
34    ldap/ldapsearchdialog.cpp
35    overlaywidget.cpp
36    progressmanager.cpp
37    progressmanager_akonadiagent.cpp
38    agentprogressmonitor.cpp
39    progressdialog.cpp
40    statusbarprogresswidget.cpp
41    ssllabel.cpp
42    broadcaststatus.cpp
43    kwidgetlister.cpp
44    recentaddresses.cpp
45    sendsmsdialog.cpp
46    kmailcompletion.cpp
47    pimmessagebox.cpp
48    multiplyingline.cpp
49    multiplyinglineeditor.cpp
50    multiplyinglineview_p.cpp
51    uistatesaver.cpp
54 if (KDEPIMLIBS_KRESOURCES_LIBS)
55   set(kdepim_LIB_SRCS ${kdepim_LIB_SRCS}
56     kresourceprefs.cpp
57   )
58 endif (KDEPIMLIBS_KRESOURCES_LIBS)
60 if (KDEPIM_INPROCESS_LDAP)
61   set(kdepim_LIB_SRCS ${kdepim_LIB_SRCS}
62     ldap/ldapsession.cpp
63     ldap/ldapqueryjob.cpp
64   )
65 endif ()
67 kde4_add_library(kdepim ${LIBRARY_TYPE} ${kdepim_LIB_SRCS})
69 target_link_libraries(kdepim
70   ${KDEPIMLIBS_KRESOURCES_LIBS}
71   ${KDEPIMLIBS_KABC_LIBS}
72   ${KDEPIMLIBS_KPIMUTILS_LIBS}
73   ${KDEPIMLIBS_KLDAP_LIBS}
74   ${KDEPIMLIBS_KPIMIDENTITIES_LIBS}
75   ${KDE4_KCMUTILS_LIBS}
76   ${KDE4_SOLID_LIBS}
77   ${KDEPIMLIBS_KMIME_LIBS}
78   ${KDEPIMLIBS_KPIMTEXTEDIT_LIBS}
79   ${KDEPIMLIBS_KMIME_LIBS}
80   ${KDEPIMLIBS_AKONADI_LIBS}
81   ${KDEPIMLIBS_AKONADI_CONTACT_LIBS}
84 target_link_libraries(kdepim LINK_INTERFACE_LIBRARIES
85   ${KDEPIMLIBS_KRESOURCES_LIBS}
86   ${KDEPIMLIBS_KABC_LIBS}
87   ${KDEPIMLIBS_KPIMUTILS_LIBS}
88   ${KDEPIMLIBS_KLDAP_LIBS}
89   ${KDEPIMLIBS_KPIMIDENTITIES_LIBS}
90   ${KDEPIMLIBS_KPIMTEXTEDIT_LIBS}
91   ${KDEPIMLIBS_AKONADI_LIBS}
92   ${KDEPIMLIBS_AKONADI_CONTACT_LIBS}
95 if(MINGW)
96    target_link_libraries(kdepim oleaut32)
97 endif(MINGW)
99 set_target_properties(kdepim PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
100 install(TARGETS kdepim ${INSTALL_TARGETS_DEFAULT_ARGS})
103 ########### next target ###############
105 if (QT_QTDESIGNER_FOUND)
106   set(kdepimwidgets_PART_SRCS)
107   kde4_add_widget_files(kdepimwidgets_PART_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/kdepim.widgets)
109   kde4_add_plugin(kdepimwidgets ${kdepimwidgets_PART_SRCS})
112   target_link_libraries(kdepimwidgets  ${KDE4_KIO_LIBS} kdepim)
114   install(TARGETS kdepimwidgets  DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer)
115 endif (QT_QTDESIGNER_FOUND)
117 ########### next target ###############
119 set( kcm_ldap_SRCS
120      ldap/addhostdialog.cpp
121      ldap/kcmldap.cpp
124 if (NOT WINCE)
125   kde4_add_plugin(kcm_ldap ${kcm_ldap_SRCS})
126 else (NOT WINCE)
127   kde4_add_plugin(kcm_ldap STATIC ${kcm_ldap_SRCS})
128 endif (NOT WINCE)
130 target_link_libraries(kcm_ldap ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} kdepim)
132 install(TARGETS kcm_ldap DESTINATION ${PLUGIN_INSTALL_DIR})
133 install(FILES ldap/kcmldap.desktop DESTINATION ${SERVICES_INSTALL_DIR})
135 ########### install files ###############
137 install(FILES interfaces/org.kde.addressbook.service.xml interfaces/org.kde.mailtransport.service.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR})