summaryrefslogtreecommitdiffstats
path: root/framework/src/CMakeLists.txt
blob: f7902aa7d29238c1733b6823e91c713c6fb5103d (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
find_package(Qt5 COMPONENTS REQUIRED Core Qml)
find_package(KF5MimeTreeParser "5.1.46" CONFIG REQUIRED)
find_package(KF5Mime "4.87.0" CONFIG REQUIRED)
find_package(Sink CONFIG REQUIRED)
find_package(KAsync CONFIG REQUIRED)
find_package(QGpgme CONFIG REQUIRED)
find_package(KF5Codecs CONFIG REQUIRED)
find_package(KF5Package CONFIG REQUIRED)

add_definitions("-Wall -std=c++0x -g")

include_directories(.)

set(SRCS
    frameworkplugin.cpp
    actions/action.cpp
    actions/actionhandler.cpp
    actions/actionbroker.cpp
    actions/actionresult.cpp
    actions/context.cpp
    settings/settings.cpp
    domain/attachmentmodel.cpp
    domain/maillistmodel.cpp
    domain/folderlistmodel.cpp
    domain/actions/sinkactions.cpp
    domain/objecttreesource.cpp
    domain/stringhtmlwriter.cpp
    domain/composercontroller.cpp
    domain/messageparser.cpp
    domain/messageparser_new.cpp
    domain/messageparser_old.cpp
    domain/mailtemplates.cpp
    domain/modeltest.cpp
    domain/retriever.cpp
    domain/outboxmodel.cpp
    domain/identitiesmodel.cpp
    domain/recepientautocompletionmodel.cpp
    domain/settings/accountsettings.cpp
    domain/selector.cpp
    domain/completer.cpp
    domain/controller.cpp
    domain/outboxcontroller.cpp
    domain/mailcontroller.cpp
    domain/foldercontroller.cpp
    domain/mouseproxy.cpp
    domain/contactcontroller.cpp
    domain/peoplemodel.cpp
    accounts/accountfactory.cpp
    accounts/accountsmodel.cpp
    notifications/notificationhandler.cpp
)

add_library(frameworkplugin SHARED ${SRCS})
qt5_use_modules(frameworkplugin Core Quick Qml WebKitWidgets Test)
target_link_libraries(frameworkplugin sink mimetreeparser KF5::MimeTreeParser KF5::Codecs KF5::Package KAsync)
install(TARGETS frameworkplugin DESTINATION ${FRAMEWORK_INSTALL_DIR})

add_subdirectory(domain/actions/tests)
add_subdirectory(domain/mimetreeparser)

feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)