CMakeLists.txt 4.53 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
10
    )
11
set(libimportwizard_manual_SRCS
12 13 14 15 16
    manual/manualimportmailpage.cpp
    manual/importwizardfilterinfogui.cpp
    manual/manualselectfilterpage.cpp
    )

17
set(libimportwizard_autodetect_SRCS
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
    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
67 68 69
    autodetect/geary/gearysettings.cpp
    autodetect/geary/gearyimportdata.cpp
    autodetect/geary/gearyaddressbook.cpp
70 71 72
    )


73
ki18n_wrap_ui(libimportwizard_SRCS
74 75 76 77 78 79 80 81 82 83 84 85
    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
    )

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

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


92 93 94 95 96 97
add_library(libimportwizard ${libimportwizard_autodetect_SRCS} ${libimportwizard_manual_SRCS} ${libimportwizard_SRCS})

generate_export_header(libimportwizard BASE_NAME libimportwizard)

target_link_libraries(libimportwizard
    PRIVATE
98 99 100 101
    KF5::AkonadiCore
    KF5::MailTransport
    KF5::XmlGui
    KF5::MailImporter
Laurent Montel's avatar
Laurent Montel committed
102
    KF5::PimCommon
103 104 105 106 107 108
    KF5::MailCommon
    KF5::Libkdepim
    KF5::MessageComposer
    KF5::MessageViewer
    KF5::Completion
    KF5::I18n
Laurent Montel's avatar
Laurent Montel committed
109
    KF5::Crash
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
133 134 135 136 137
    )

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

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

140
add_subdirectory(manual/pics)
141