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

Nate Graham's avatar
Nate Graham committed
3
configure_file(org.kde.spectacle.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.kde.spectacle.desktop)
4
install(
Nate Graham's avatar
Nate Graham committed
5
    PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.spectacle.desktop
6
7
8
    DESTINATION ${XDG_APPS_INSTALL_DIR}
)

David Redondo's avatar
David Redondo committed
9
install( DIRECTORY DESTINATION "${KDE_INSTALL_FULL_DATAROOTDIR}/kglobalaccel" )
10
install(
David Redondo's avatar
David Redondo committed
11
    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
12
)
Boudhayan Gupta's avatar
Boudhayan Gupta committed
13
14

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

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

install(
    FILES spectacle_shortcuts.upd
    DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR}
)
David Redondo's avatar
David Redondo committed
28
29
30
31
install(
    FILES spectacle_newConfig.upd
    DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR}
)
David Redondo's avatar
David Redondo committed
32
33
34
35
36
37
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
)