CMakeLists.txt 1.38 KB
Newer Older
Martin Koller's avatar
Martin Koller committed
1
2
3
4
5
6
7
8
9
10
11
add_subdirectory(pics)

set(kbackup_SRCS
    Archiver.cxx
    MainWindow.cxx
    Selector.cxx
    main.cxx
    MainWidget.cxx
    SettingsDialog.cxx
    )

Martin Koller's avatar
Martin Koller committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ki18n_wrap_ui(kbackup_SRCS MainWidgetBase.ui SettingsDialog.ui)

add_executable(kbackup ${kbackup_SRCS})
target_link_libraries(kbackup
                      Qt5::Core
                      Qt5::Widgets
                      KF5::I18n
                      KF5::KIOCore
                      KF5::KIOFileWidgets
                      KF5::KIOWidgets
                      KF5::WidgetsAddons
                      KF5::XmlGui
                      KF5::Notifications
                      KF5::IconThemes
                      KF5::Archive
)
Martin Koller's avatar
Martin Koller committed
28
29
30
31
32

install(TARGETS kbackup ${INSTALL_TARGETS_DEFAULT_ARGS})

find_package(SharedMimeInfo REQUIRED)

33
34
install(FILES kbackup.xml DESTINATION ${KDE_INSTALL_MIMEDIR})
update_xdg_mimetypes(${KDE_INSTALL_MIMEDIR})
Martin Koller's avatar
Martin Koller committed
35

36
install(FILES  org.kde.kbackup.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
Martin Koller's avatar
Martin Koller committed
37
install(FILES  kbackupui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/kbackup)
Burkhard Lück's avatar
Burkhard Lück committed
38
install(FILES org.kde.kbackup.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
Martin Koller's avatar
Martin Koller committed
39
40
41
42
43
44
45
46

ecm_install_icons(ICONS
                  16-apps-kbackup.png
                  32-apps-kbackup.png
                  16-mimetypes-text-x-kbp.png
                  32-mimetypes-text-x-kbp.png
                  DESTINATION ${ICON_INSTALL_DIR}
                  THEME hicolor)