CMakeLists.txt 1.38 KB
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1 2


Laurent Montel's avatar
Laurent Montel committed
3
add_definitions(-DTRANSLATION_DOMAIN=\"messageviewer_text_calendar_plugin\")
4 5 6
set(messageviewer_bodypartformatter_text_calendar_PART_SRCS text_calendar.cpp delegateselector.cpp attendeeselector.cpp memorycalendarmemento.cpp syncitiphandler.cpp)

ecm_qt_declare_logging_category(messageviewer_bodypartformatter_text_calendar_PART_SRCS HEADER text_calendar_debug.h IDENTIFIER TEXT_CALENDAR_LOG CATEGORY_NAME log_text_calendar)
Laurent Montel's avatar
Laurent Montel committed
7 8

qt5_add_dbus_interfaces(messageviewer_bodypartformatter_text_calendar_PART_SRCS
Laurent Montel's avatar
Laurent Montel committed
9
    ${CMAKE_SOURCE_DIR}/korganizer/src/data/org.kde.Korganizer.Calendar.xml
Laurent Montel's avatar
indent  
Laurent Montel committed
10
    )
Laurent Montel's avatar
Laurent Montel committed
11 12 13 14 15 16 17

ki18n_wrap_ui(messageviewer_bodypartformatter_text_calendar_PART_SRCS attendeeselector.ui)

add_library(messageviewer_bodypartformatter_text_calendar MODULE ${messageviewer_bodypartformatter_text_calendar_PART_SRCS})


target_link_libraries(messageviewer_bodypartformatter_text_calendar
Laurent Montel's avatar
indent  
Laurent Montel committed
18 19 20 21 22 23 24 25 26 27 28 29
    KF5::Codecs
    Qt5::Core
    KF5::CalendarCore
    KF5::CalendarUtils
    KF5::Mime
    KF5::IdentityManagement
    KF5::MailTransport
    KF5::AkonadiMime
    KF5::CalendarSupport
    KF5::Libkdepim
    KF5::MessageViewer
    )
Laurent Montel's avatar
Laurent Montel committed
30

31
target_link_libraries(messageviewer_bodypartformatter_text_calendar KF5::IncidenceEditor)
Laurent Montel's avatar
Laurent Montel committed
32

33
install(TARGETS messageviewer_bodypartformatter_text_calendar  DESTINATION ${KDE_INSTALL_PLUGINDIR})
Laurent Montel's avatar
Laurent Montel committed
34

35
install(FILES text_calendar.desktop DESTINATION ${KDE_INSTALL_DATADIR}/messageviewer/plugins/bodypartformatter)