summaryrefslogtreecommitdiffstats
path: root/framework/mail/CMakeLists.txt
blob: 13788cfa1f765a5e8fa0d9154952b28a7f74c002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
set(mailplugin_SRCS
    mailplugin.cpp
    maillistcontroller.cpp
    maillistmodel.cpp
    singlemailcontroller.cpp
    folderlistmodel.cpp
    folderlistcontroller.cpp
    actions/sinkactions.cpp
    objecttreesource.cpp
    stringhtmlwriter.cpp
    csshelper.cpp
    composer.cpp
    messageparser.cpp
)
add_definitions(-DMAIL_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data")

add_library(mailplugin SHARED ${mailplugin_SRCS})

qt5_use_modules(mailplugin Core Quick Qml)

target_link_libraries(mailplugin actionplugin sink KF5::Otp)

install(TARGETS mailplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/kube/mail)
install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/kube/mail)