From 405e84e40cfb73856634406bd456c0a9b9eb610c Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Mon, 13 Sep 2021 13:50:46 +0800 Subject: [PATCH] update install command --- GPClient/CMakeLists.txt | 6 +++--- GPService/CMakeLists.txt | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/GPClient/CMakeLists.txt b/GPClient/CMakeLists.txt index 4b6268c..3a47b64 100644 --- a/GPClient/CMakeLists.txt +++ b/GPClient/CMakeLists.txt @@ -40,6 +40,6 @@ target_link_libraries(gpclient Qt5::DBus ) -install(TARGETS gpclient DESTINATION bin) -install(FILES com.yuezk.qt.gpclient.desktop DESTINATION share/applications) -install(FILES com.yuezk.qt.GPClient.svg DESTINATION share/pixmaps) \ No newline at end of file +install(TARGETS gpclient DESTINATION "/usr/bin") +install(FILES com.yuezk.qt.gpclient.desktop DESTINATION "/usr/share/applications") +install(FILES com.yuezk.qt.GPClient.svg DESTINATION "/usr/share/pixmaps") \ No newline at end of file diff --git a/GPService/CMakeLists.txt b/GPService/CMakeLists.txt index 0faceba..8cacdf1 100644 --- a/GPService/CMakeLists.txt +++ b/GPService/CMakeLists.txt @@ -28,7 +28,7 @@ target_link_libraries(gpservice Qt5::DBus ) -install(TARGETS gpservice DESTINATION bin) -install(FILES "dbus/com.yuezk.qt.GPService.conf" DESTINATION "share/dbus-1/system.d" ) -install(FILES "dbus/com.yuezk.qt.GPService.service" DESTINATION "share/dbus-1/system-services") -install(FILES "systemd/gpservice.service" DESTINATION "${CMAKE_INSTALL_SYSCONFDIR}/systemd/system") +install(TARGETS gpservice DESTINATION "/usr/bin") +install(FILES "dbus/com.yuezk.qt.GPService.conf" DESTINATION "/usr/share/dbus-1/system.d" ) +install(FILES "dbus/com.yuezk.qt.GPService.service" DESTINATION "/usr/share/dbus-1/system-services") +install(FILES "systemd/gpservice.service" DESTINATION "/etc/systemd/system")