aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMihai Fufezan <[email protected]>2024-11-03 17:45:50 +0200
committerMihai Fufezan <[email protected]>2024-11-03 23:59:35 +0200
commit2557b9c01da0d1a7b70f679a0ff945f34c8a68d2 (patch)
tree35fd292f14c73afe9cf4cad0f1ba068a33f094a7
parent4a6773920602148e54d6384e83375ed3dd9c9a10 (diff)
downloadHyprland-2557b9c01da0d1a7b70f679a0ff945f34c8a68d2.tar.gz
Hyprland-2557b9c01da0d1a7b70f679a0ff945f34c8a68d2.zip
CMake: install systemd targets
-rw-r--r--CMakeLists.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 877ba461..46783757 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -222,8 +222,8 @@ if(NO_SYSTEMD)
else()
message(STATUS "SYSTEMD support is requested (NO_SYSTEMD not defined)...")
add_compile_definitions(USES_SYSTEMD)
- configure_file(systemd/hyprland-session.service.in
- systemd/hyprland-session.service @ONLY)
+ configure_file(${CMAKE_SOURCE_DIR}/systemd/hyprland-session.service.in
+ ${CMAKE_BINARY_DIR}/systemd/hyprland-session.service @ONLY)
# session file -systemd
install(FILES ${CMAKE_SOURCE_DIR}/systemd/hyprland-systemd.desktop
@@ -232,6 +232,14 @@ else()
# install systemd service
install(FILES ${CMAKE_BINARY_DIR}/systemd/hyprland-session.service
DESTINATION ${CMAKE_INSTALL_LIBDIR}/systemd/user)
+
+ # install systemd targets
+ install(FILES ${CMAKE_SOURCE_DIR}/systemd/hyprland-session.target
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/systemd/user)
+ install(FILES ${CMAKE_SOURCE_DIR}/systemd/[email protected]
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/systemd/user)
+ install(FILES ${CMAKE_SOURCE_DIR}/systemd/hyprland-session-pre.target
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/systemd/user)
endif()
set(CPACK_PROJECT_NAME ${PROJECT_NAME})