aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'hyprctl/CMakeLists.txt')
-rw-r--r--hyprctl/CMakeLists.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/hyprctl/CMakeLists.txt b/hyprctl/CMakeLists.txt
index 99964b50..6f70ace8 100644
--- a/hyprctl/CMakeLists.txt
+++ b/hyprctl/CMakeLists.txt
@@ -5,4 +5,17 @@ project(
DESCRIPTION "Control utility for Hyprland"
)
-add_executable(hyprctl "main.cpp") \ No newline at end of file
+add_executable(hyprctl "main.cpp")
+
+# binary
+install(TARGETS hyprctl)
+
+# shell completions
+install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/hyprctl.bash
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/bash-completion/completions
+ RENAME hyprctl)
+install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/hyprctl.fish
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/fish/vendor_completions.d)
+install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/hyprctl.zsh
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/zsh/site-functions
+ RENAME _hyprctl)