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)
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 )
18 ########### next target ###############
21 addemailaddressjob.cpp
23 completionordereditor.cpp
24 openemailaddressjob.cpp
32 kweekdaycheckcombo.cpp
34 ldap/ldapsearchdialog.cpp
37 progressmanager_akonadiagent.cpp
38 agentprogressmonitor.cpp
40 statusbarprogresswidget.cpp
49 multiplyinglineeditor.cpp
50 multiplyinglineview_p.cpp
54 if (KDEPIMLIBS_KRESOURCES_LIBS)
55 set(kdepim_LIB_SRCS ${kdepim_LIB_SRCS}
58 endif (KDEPIMLIBS_KRESOURCES_LIBS)
60 if (KDEPIM_INPROCESS_LDAP)
61 set(kdepim_LIB_SRCS ${kdepim_LIB_SRCS}
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}
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}
96 target_link_libraries(kdepim oleaut32)
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 ###############
120 ldap/addhostdialog.cpp
125 kde4_add_plugin(kcm_ldap ${kcm_ldap_SRCS})
127 kde4_add_plugin(kcm_ldap STATIC ${kcm_ldap_SRCS})
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})