CMakeLists.txt 1.61 KB
Newer Older
Laurent Montel's avatar
Laurent Montel committed
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

set(folderconfiguresettings_SRCS
    folderconfiguresettingsdialog.cpp
    folderconfiguresettingswidget.cpp
    foldersettingfilterproxymodel.cpp
    folderconfiguretreewidget.cpp
    folderconfiguresettingspagewidget.cpp
    folderconfiguresettingsgeneralwidget.cpp
    )

ecm_qt_declare_logging_category(folderconfiguresettings_SRCS HEADER libfolderconfiguresettings_debug.h IDENTIFIER LIBFOLDERCONFIGURESETTINGS_PLUGIN_LOG CATEGORY_NAME org.kde.pim.libdkimconfigureplugin
    DESCRIPTION "kdepim-addons (foldersettings-configure)"
    EXPORT KDEPIMADDONS
    )

add_library(folderconfiguresettings ${folderconfiguresettings_SRCS})
generate_export_header(folderconfiguresettings BASE_NAME libfolderconfiguresettings)
target_link_libraries(folderconfiguresettings
    KF5::MessageViewer
    KF5::I18n
    KF5::MailCommon
    )

set_target_properties(folderconfiguresettings
    PROPERTIES OUTPUT_NAME folderconfiguresettings VERSION ${KDEPIMADDONS_LIB_VERSION} SOVERSION ${KDEPIMADDONS_LIB_SOVERSION}
    )

install(TARGETS folderconfiguresettings ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)


31
32
33
34
35
36
37
38
39
40
41
set(messageviewer_folderconfiguresettingsplugin_SRCS
   folderconfiguresettingsplugin.cpp
)

kcoreaddons_add_plugin(messageviewer_folderconfiguresettingsplugin JSON messageviewer_folderconfiguresettingsplugin.json SOURCES
    ${messageviewer_folderconfiguresettingsplugin_SRCS} INSTALL_NAMESPACE messageviewer/configuresettings)

target_link_libraries(messageviewer_folderconfiguresettingsplugin
  KF5::MessageViewer
  KF5::I18n
  KF5::MailCommon
Laurent Montel's avatar
Laurent Montel committed
42
  folderconfiguresettings
43
44
45
46
47
)

if(BUILD_TESTING)
    add_subdirectory(autotests)
endif()