CMakeLists.txt 3.68 KB
Newer Older
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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109



add_subdirectory(icons)
add_subdirectory(kconf_update)
set(importwizard_SRCS
    importwizardkernel.cpp
    importwizard.cpp
    main.cpp
    )

set(importwizard_manual_SRCS
    manual/manualimportmailpage.cpp
    manual/importwizardfilterinfogui.cpp
    manual/manualselectfilterpage.cpp
    )

set(importwizard_autodetect_SRCS
    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
    autodetect/trojita/trojitasettings.cpp
    autodetect/trojita/trojitaimportdata.cpp
    autodetect/trojita/trojitaaddressbook.cpp
    autodetect/icedove/icedoveimportdata.cpp
    )


ki18n_wrap_ui(importwizard_SRCS 
    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
    )

ecm_qt_declare_logging_category(importwizard_SRCS HEADER importwizard_debug.h IDENTIFIER IMPORTWIZARD_LOG CATEGORY_NAME log_importwizard)

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

add_executable(importwizard ${importwizard_SRCS} ${importwizard_autodetect_SRCS} ${importwizard_manual_SRCS})

target_link_libraries(importwizard
    KF5::AkonadiCore
    KF5::MailTransport
    KF5::DBusAddons
    KF5::XmlGui
    KF5::MailImporter
    KF5::PimCommon
    KF5::MailCommon
    KF5::Libkdepim
    KF5::MessageComposer
    KF5::MessageViewer
    KF5::Completion
    KF5::I18n
    )

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

add_subdirectory(manual/pics)
110