CMakeLists.txt 4.58 KB
Newer Older
1 2


Laurent Montel's avatar
Laurent Montel committed
3
configure_file(importwizard-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/importwizard-version.h @ONLY)
4 5
add_subdirectory(icons)
add_subdirectory(kconf_update)
6 7

set(libimportwizard_SRCS
8
    importwizard.cpp
9
    importwizardkernel.cpp
Laurent Montel's avatar
Laurent Montel committed
10
    importmailpluginmanager.cpp
11
    )
Laurent Montel's avatar
Laurent Montel committed
12

13
set(libimportwizard_manual_SRCS
14 15 16 17 18
    manual/manualimportmailpage.cpp
    manual/importwizardfilterinfogui.cpp
    manual/manualselectfilterpage.cpp
    )

19
set(libimportwizard_autodetect_SRCS
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 63 64
    autodetect/widgets/selectprogramlistwidget.cpp
    autodetect/importwizardutil.cpp
    autodetect/selectprogrampage.cpp
    autodetect/importaddressbookpage.cpp
    autodetect/importfilterpage.cpp
    autodetect/importmailpage.cpp
    autodetect/importsettingpage.cpp
    autodetect/importfinishpage.cpp
    autodetect/selectcomponentpage.cpp
    autodetect/importfilterinfogui.cpp
    autodetect/importcalendarpage.cpp
    autodetect/abstractimporter.cpp
    autodetect/abstractsettings.cpp
    autodetect/abstractaddressbook.cpp
    autodetect/abstractcalendar.cpp
    autodetect/abstractbase.cpp
    autodetect/thunderbird/thunderbirdimportdata.cpp
    autodetect/thunderbird/thunderbirdsettings.cpp
    autodetect/thunderbird/thunderbirdaddressbook.cpp
    autodetect/thunderbird/addressbook/MorkParser.cpp
    autodetect/sylpheed/sylpheedimportdata.cpp
    autodetect/sylpheed/sylpheedsettings.cpp
    autodetect/sylpheed/sylpheedaddressbook.cpp
    autodetect/sylpheed/sylpheedsettingsutils.cpp
    autodetect/evolutionv3/evolutionv3importdata.cpp
    autodetect/evolutionv3/evolutionsettings.cpp
    autodetect/evolutionv3/evolutioncalendar.cpp
    autodetect/evolutionv3/evolutionaddressbook.cpp
    autodetect/evolutionv3/evolutionutil.cpp
    autodetect/evolutionv2/evolutionv2importdata.cpp
    autodetect/evolutionv1/evolutionv1importdata.cpp
    autodetect/opera/operaimportdata.cpp
    autodetect/opera/operaaddressbook.cpp
    autodetect/opera/operasettings.cpp
    autodetect/oe/oeimportdata.cpp
    autodetect/mailapp/mailappimportdata.cpp
    autodetect/pmail/pmailimportdata.cpp
    autodetect/pmail/pmailsettings.cpp
    autodetect/thebat/thebatimportdata.cpp
    autodetect/balsa/balsaimportdata.cpp
    autodetect/balsa/balsasettings.cpp
    autodetect/balsa/balsaaddressbook.cpp
    autodetect/claws-mail/clawsmailimportdata.cpp
    autodetect/claws-mail/clawsmailsettings.cpp
    autodetect/claws-mail/clawsmailaddressbook.cpp
Laurent Montel's avatar
Laurent Montel committed
65 66 67
#    autodetect/trojita/trojitasettings.cpp
#    autodetect/trojita/trojitaimportdata.cpp
#    autodetect/trojita/trojitaaddressbook.cpp
68
    autodetect/icedove/icedoveimportdata.cpp
Laurent Montel's avatar
Laurent Montel committed
69 70 71
#    autodetect/geary/gearysettings.cpp
#    autodetect/geary/gearyimportdata.cpp
#    autodetect/geary/gearyaddressbook.cpp
72 73 74
    )


75
ki18n_wrap_ui(libimportwizard_SRCS
76 77 78 79 80 81 82 83 84 85 86 87
    ui/autodetect/selectprogrampage.ui
    ui/autodetect/importaddressbookpage.ui
    ui/autodetect/importfilterpage.ui
    ui/autodetect/importmailpage.ui
    ui/autodetect/importsettingpage.ui
    ui/autodetect/selectcomponentpage.ui
    ui/autodetect/importfinishpage.ui
    ui/autodetect/importcalendarpage.ui
    ui/manual/manualimportmailpage.ui
    ui/manual/manualselectfilterpage.ui
    )

88
ecm_qt_declare_logging_category(libimportwizard_SRCS HEADER importwizard_debug.h IDENTIFIER IMPORTWIZARD_LOG CATEGORY_NAME org.kde.pim.importwizard)
89 90 91 92 93

file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/*-apps-kontact-import-wizard.png")
ecm_add_app_icon(importwizard_SRCS ICONS ${ICONS_SRCS})


94 95 96 97 98 99
add_library(libimportwizard ${libimportwizard_autodetect_SRCS} ${libimportwizard_manual_SRCS} ${libimportwizard_SRCS})

generate_export_header(libimportwizard BASE_NAME libimportwizard)

target_link_libraries(libimportwizard
    PRIVATE
100 101 102
    KF5::AkonadiCore
    KF5::MailTransport
    KF5::XmlGui
Laurent Montel's avatar
Laurent Montel committed
103
    KF5::MailImporterAkonadi
Laurent Montel's avatar
Laurent Montel committed
104
    KF5::PimCommon
105 106 107 108 109
    KF5::MailCommon
    KF5::Libkdepim
    KF5::MessageViewer
    KF5::Completion
    KF5::I18n
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
    KF5::CoreAddons
    )

set_target_properties(libimportwizard
    PROPERTIES OUTPUT_NAME importwizard VERSION ${KDEPIM_LIB_VERSION} SOVERSION ${KDEPIM_LIB_SOVERSION}
    )


set(importwizard_SRCS
    main.cpp
    )

add_executable(importwizard ${importwizard_SRCS})

target_link_libraries(importwizard
    libimportwizard
    KF5::I18n
    KF5::Crash
    KF5::CoreAddons
    KF5::DBusAddons
    Qt5::Widgets
    KF5::ConfigCore
    KF5::WidgetsAddons
Albert Astals Cid's avatar
build++  
Albert Astals Cid committed
133
    KF5::MailCommon
134 135 136 137 138
    )

install(TARGETS importwizard  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS data/org.kde.importwizard.desktop DESTINATION ${KDE_INSTALL_APPDIR})

139 140
install(TARGETS libimportwizard ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)

141
add_subdirectory(manual/pics)
Laurent Montel's avatar
Laurent Montel committed
142
add_subdirectory(autodetect/)