CMakeLists.txt 2.62 KB
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
include_directories( 
Laurent Montel's avatar
Laurent Montel committed
2
3
    ${pim-data-exporter_SOURCE_DIR}/core/
    ${pim-data-exporter_BINARY_DIR}/core/
Laurent Montel's avatar
indent    
Laurent Montel committed
4
    )
Laurent Montel's avatar
Laurent Montel committed
5

Laurent Montel's avatar
Laurent Montel committed
6
set(pimdataexporter_calendar_SRCS
Laurent Montel's avatar
indent    
Laurent Montel committed
7
8
9
    calendar/exportcalendarjob.cpp
    calendar/importcalendarjob.cpp
    )
Laurent Montel's avatar
Laurent Montel committed
10

Laurent Montel's avatar
Laurent Montel committed
11
set(pimdataexporter_addressbook_SRCS
Laurent Montel's avatar
indent    
Laurent Montel committed
12
13
14
    addressbook/exportaddressbookjob.cpp
    addressbook/importaddressbookjob.cpp
    )
Laurent Montel's avatar
Laurent Montel committed
15

Laurent Montel's avatar
Laurent Montel committed
16
set(pimdataexporter_mail_SRCS
Laurent Montel's avatar
indent    
Laurent Montel committed
17
18
    mail/exportmailjob.cpp
    mail/importmailjob.cpp
19
    mail/importexportmailutil.cpp
Laurent Montel's avatar
indent    
Laurent Montel committed
20
    )
Laurent Montel's avatar
Laurent Montel committed
21

Laurent Montel's avatar
Laurent Montel committed
22
set(pimdataexporter_alarm_SRCS
Laurent Montel's avatar
indent    
Laurent Montel committed
23
24
25
    alarm/exportalarmjob.cpp
    alarm/importalarmjob.cpp
    )
Laurent Montel's avatar
Laurent Montel committed
26

Laurent Montel's avatar
Laurent Montel committed
27
28
29
30
set(pimdataexporter_interfaces_SRCS
    notes/exportnotesjobinterface.cpp
   )

Laurent Montel's avatar
Laurent Montel committed
31
set(pimdataexporter_notes_SRCS
Laurent Montel's avatar
Laurent Montel committed
32
    notes/exportnotesjobinterfaceimpl.cpp
Laurent Montel's avatar
indent    
Laurent Montel committed
33
34
    notes/importnotesjob.cpp
    )
Laurent Montel's avatar
Laurent Montel committed
35

Laurent Montel's avatar
Laurent Montel committed
36
set(pimdataexporter_xml_SRCS
Laurent Montel's avatar
indent    
Laurent Montel committed
37
38
    xml/templateselection.cpp
    )
Laurent Montel's avatar
Laurent Montel committed
39

Laurent Montel's avatar
Laurent Montel committed
40
set(pimdataexporter_akregator_SRCS
Laurent Montel's avatar
indent    
Laurent Montel committed
41
42
43
    akregator/exportakregatorjob.cpp
    akregator/importakregatorjob.cpp
    )
Laurent Montel's avatar
Laurent Montel committed
44
45


Laurent Montel's avatar
Laurent Montel committed
46
47
48
49
50
51
52
53
54
set(pimdataexporter_LIB_SRCS
    ${pimdataexporter_xml_SRCS}
    ${pimdataexporter_notes_SRCS}
    ${pimdataexporter_alarm_SRCS}
    ${pimdataexporter_mail_SRCS}
    ${pimdataexporter_calendar_SRCS}
    ${pimdataexporter_addressbook_SRCS}
    ${pimdataexporter_jot_SRCS}
    ${pimdataexporter_akregator_SRCS}
Laurent Montel's avatar
Laurent Montel committed
55
    ${pimdataexporter_interfaces_SRCS}
Laurent Montel's avatar
indent    
Laurent Montel committed
56
    abstractimportexportjob.cpp
57
    pimdataexporterkernel.cpp
Laurent Montel's avatar
indent    
Laurent Montel committed
58
59
60
    utils.cpp
    archivestorage.cpp
    synchronizeresourcejob.cpp
61
    pimdatabackuprestore.cpp
Laurent Montel's avatar
indent    
Laurent Montel committed
62
    importexportprogressindicatorbase.cpp
63
    pimdatabackupthread.cpp
Laurent Montel's avatar
indent    
Laurent Montel committed
64
    exportresourcearchivejob.cpp
Laurent Montel's avatar
Laurent Montel committed
65
    pimdataimportdatainfofile.cpp
66
    resourceconverter.cpp
Laurent Montel's avatar
indent    
Laurent Montel committed
67
    )
Laurent Montel's avatar
Laurent Montel committed
68

69
ecm_qt_declare_logging_category(pimdataexporter_LIB_SRCS HEADER pimdataexportcore_debug.h IDENTIFIER PIMDATAEXPORTERCORE_LOG CATEGORY_NAME org.kde.pim.pimdataexportercore
Laurent Montel's avatar
Laurent Montel committed
70
71
72
73
        DESCRIPTION "pimdataexporter (pimdataexporter lib core)"
        OLD_CATEGORY_NAMES log_pimsettingexportercore org.kde.pim.pimsettingexportercore
        EXPORT PIMDATAEXPORTER
    )
Laurent Montel's avatar
Laurent Montel committed
74

Laurent Montel's avatar
Laurent Montel committed
75
add_library(pimdataexporterprivate ${pimdataexporter_LIB_SRCS})
Laurent Montel's avatar
Laurent Montel committed
76
generate_export_header(pimdataexporterprivate BASE_NAME pimdataexporter)
Laurent Montel's avatar
Laurent Montel committed
77
78
79



Laurent Montel's avatar
Laurent Montel committed
80
target_link_libraries(pimdataexporterprivate
Laurent Montel's avatar
indent    
Laurent Montel committed
81
82
83
84
85
86
    PRIVATE
    KF5::AkonadiCore
    KF5::Mime
    KF5::MailTransport
    KF5::MailCommon
    KF5::Archive
Laurent Montel's avatar
Laurent Montel committed
87
    KF5::PimCommonAkonadi
88
    KF5::I18n
89
90
    KF5::CalendarCore
    KF5::AkonadiNotes
Laurent Montel's avatar
indent    
Laurent Montel committed
91
    )
Laurent Montel's avatar
Laurent Montel committed
92

Laurent Montel's avatar
Laurent Montel committed
93
set_target_properties(pimdataexporterprivate PROPERTIES VERSION ${KDEPIM_LIB_VERSION} SOVERSION ${KDEPIM_LIB_SOVERSION})
Laurent Montel's avatar
Laurent Montel committed
94

Laurent Montel's avatar
Laurent Montel committed
95
install(TARGETS pimdataexporterprivate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
Laurent Montel's avatar
Laurent Montel committed
96

Laurent Montel's avatar
Laurent Montel committed
97
98
if(BUILD_TESTING)
    add_subdirectory(autotests)
Laurent Montel's avatar
Laurent Montel committed
99
    add_subdirectory(notes/autotests)
Laurent Montel's avatar
Laurent Montel committed
100
101
endif()