2 ${CMAKE_SOURCE_DIR}/messageviewer
3 ${CMAKE_SOURCE_DIR}/templateparser
4 ${CMAKE_BINARY_DIR}/templateparser
5 ${CMAKE_CURRENT_BINARY_DIR}/../ontologies
8 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
10 set(libmailcommon_SRCS
14 attributeregistrar.cpp
15 collectionannotationsattribute.cpp
16 collectiongeneralpage.cpp
17 entitycollectionorderproxymodel.cpp
19 expirypropertiesdialog.cpp
21 filteractionwidget.cpp
24 filterimporterexporter.cpp
29 foldercollectionmonitor.cpp
32 folderselectiondialog.cpp
43 readablecollectionproxymodel.cpp
46 rulewidgethandlermanager.cpp
53 snippetvariabledialog.cpp
56 kde4_add_ui_files(libmailcommon_SRCS filterconfigwidget.ui snippetdialog.ui)
59 set(libmailcommon_SRCS ${libmailcommon_SRCS}
64 macro(add_resource_iface _kcfgFile _ifaceName _className)
65 kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/${_kcfgFile} ${_ifaceName})
66 string(TOLOWER ${_className} _codeFile)
67 set_source_files_properties( ${CMAKE_CURRENT_BINARY_DIR}/${_ifaceName}.xml PROPERTIES INCLUDE "metatype.h")
68 qt4_add_dbus_interface(libmailcommon_SRCS
69 ${CMAKE_CURRENT_BINARY_DIR}/${_ifaceName}.xml ${_codeFile} ${_className}
71 endmacro(add_resource_iface)
73 add_resource_iface( imapresource.kcfg org.kde.Akonadi.Imap.Settings ImapSettings )
74 add_resource_iface( settings.kcfg org.kde.Akonadi.POP3.Settings Pop3Settings )
76 qt4_add_dbus_interfaces(libmailcommon_SRCS
77 ${CMAKE_SOURCE_DIR}/korganizer/org.kde.Korganizer.Calendar.xml
80 kde4_add_library(mailcommon ${LIBRARY_TYPE} ${libmailcommon_SRCS})
82 target_link_libraries(mailcommon messageviewer messagecore messagecomposer
86 ${KDEPIMLIBS_KMIME_LIBS}
87 ${KDEPIMLIBS_AKONADI_LIBS}
88 ${KDEPIMLIBS_AKONADI_KMIME_LIBS}
89 ${KDEPIMLIBS_KPIMUTILS_LIBS}
90 ${KDEPIMLIBS_KIMAP_LIBS}
91 ${KDEPIMLIBS_MAILTRANSPORT_LIBS}
95 if(NOT KDEPIM_NO_NEPOMUK)
96 target_link_libraries(mailcommon
97 ${NEPOMUK_QUERY_LIBRARIES}
101 endif(NOT KDEPIM_NO_NEPOMUK)
104 target_link_libraries(mailcommon
108 target_link_libraries(mailcommon
109 incidenceeditorsngmobile
113 set_target_properties( mailcommon PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
114 install(TARGETS mailcommon ${INSTALL_TARGETS_DEFAULT_ARGS} )
116 #install( FILES viewer.h attachmentstrategy.h headerstrategy.h messageviewer_export.h DESTINATION ${INCLUDE_INSTALL_DIR}/messageviewer COMPONENT devel)