CMakeLists.txt 1.08 KB
Newer Older
1
# install the .desktop and rc files in the correct place
2
3

install(
Boudhayan Gupta's avatar
Boudhayan Gupta committed
4
    PROGRAMS org.kde.spectacle.desktop
5
6
7
    DESTINATION ${XDG_APPS_INSTALL_DIR}
)

David Redondo's avatar
David Redondo committed
8
install( DIRECTORY DESTINATION "${KDE_INSTALL_FULL_DATAROOTDIR}/kglobalaccel" )
9
install(
David Redondo's avatar
David Redondo committed
10
    CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink \"${KDE_INSTALL_FULL_APPDIR}/org.kde.spectacle.desktop\" \"\$ENV{DESTDIR}${KDE_INSTALL_FULL_DATAROOTDIR}/kglobalaccel/org.kde.spectacle.desktop\")"
Boudhayan Gupta's avatar
Boudhayan Gupta committed
11
)
Boudhayan Gupta's avatar
Boudhayan Gupta committed
12
13

install(
David Redondo's avatar
David Redondo committed
14
15
    FILES spectacle.notifyrc
    DESTINATION ${KNOTIFYRC_INSTALL_DIR}
Boudhayan Gupta's avatar
Boudhayan Gupta committed
16
)
17
18
19
20
21

install(
    FILES org.kde.spectacle.appdata.xml
    DESTINATION ${KDE_INSTALL_METAINFODIR}
)
David Redondo's avatar
David Redondo committed
22
23
24
25
26

install(
    FILES spectacle_shortcuts.upd
    DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR}
)
David Redondo's avatar
David Redondo committed
27
28
29
30
install(
    FILES spectacle_newConfig.upd
    DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR}
)
David Redondo's avatar
David Redondo committed
31
32
33
34
35
36
add_executable(spectacle-migrate-shortcuts MigrateShortcuts.cpp)
target_link_libraries(spectacle-migrate-shortcuts Qt5::DBus KF5::GlobalAccel KF5::ConfigCore KF5::XmlGui KF5::I18n)
install(
    TARGETS spectacle-migrate-shortcuts
    DESTINATION ${KDE_INSTALL_LIBDIR}/kconf_update_bin
)