summaryrefslogtreecommitdiffstats
path: root/framework/domain/CMakeLists.txt
blob: bb522416663e37df4aec92259a34efeb035119fc (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
set(mailplugin_SRCS
    attachmentmodel.cpp
    mailplugin.cpp
    maillistmodel.cpp
    folderlistmodel.cpp
    actions/sinkactions.cpp
    objecttreesource.cpp
    stringhtmlwriter.cpp
    composercontroller.cpp
    messageparser.cpp
    messageparser_new.cpp
    messageparser_old.cpp
    mailtemplates.cpp
    modeltest.cpp
    retriever.cpp
    accountfactory.cpp
    accountscontroller.cpp
    accountsmodel.cpp
    outboxmodel.cpp
    identitiesmodel.cpp
    recepientautocompletionmodel.cpp
    settings/accountsettings.cpp
    selector.cpp
    completer.cpp
    controller.cpp
)
find_package(KF5 REQUIRED COMPONENTS Package)

add_library(mailplugin SHARED ${mailplugin_SRCS})

qt5_use_modules(mailplugin Core Quick Qml WebKitWidgets Test)
target_link_libraries(mailplugin actionplugin settingsplugin sink mimetreeparser KF5::MimeTreeParser KF5::Codecs KF5::Package KF5::Async)

add_subdirectory(actions/tests)

install(TARGETS mailplugin DESTINATION ${QML_INSTALL_DIR}/org/kube/framework/domain)
install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kube/framework/domain)

add_subdirectory(mimetreeparser)