aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2022-02-21 23:20:04 +0100
committerMiquel Lionel <lionel@les-miquelots.net>2022-02-21 23:20:04 +0100
commit046eb955a1c3f8633793c4ac99310a9623168fdd (patch)
treeb8a30184091dae4e2ca62488ce7ca37180893c11 /CMakeLists.txt
parent3af6b9251b3442b6918388474a5778f37ba6fb63 (diff)
downloadkdeltachat-046eb955a1c3f8633793c4ac99310a9623168fdd.tar.gz
kdeltachat-046eb955a1c3f8633793c4ac99310a9623168fdd.zip
Replace cp commands by cmake equivalents
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4817196..3e0511b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,4 +71,10 @@ target_link_libraries(
PRIVATE KF5::Notifications
PRIVATE PkgConfig::DeltaChat m dl)
+file(MAKE_DIRECTORY /usr/share/applications /usr/share/icons /usr/share/knotifications5 /usr/share/sounds/kdeltachat /usr/share/icons/hicolor/256x256/)
+file(COPY usr/share/applications/chat.delta.KDeltaChat.desktop DESTINATION /usr/share/applications/)
+file(COPY usr/share/sounds/kdeltachat/incomingmessage.ogg DESTINATION /usr/share/sounds/kdeltachat/)
+file(COPY usr/share/knotifications5/kdeltachat.notifyrc DESTINATION /usr/share/knotifications5/)
+file(COPY usr/share/icons/hicolor/256x256/chat.delta.KDeltaChat.png DESTINATION /usr/share/icons/hicolor/256x256/)
+#file(COPY_FILE ONLY_IS_DIFFERENT)
install(TARGETS kdeltachat ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})