diff options
author | Mihai Fufezan <[email protected]> | 2024-04-21 19:56:46 +0300 |
---|---|---|
committer | Mihai Fufezan <[email protected]> | 2024-05-05 16:30:39 +0300 |
commit | 99aa34db6e3529717961cf31ad08ab000d66cd77 (patch) | |
tree | c335e40d68926fdb77f5fef7ba2fbd9f695bca5d /hyprctl/CMakeLists.txt | |
parent | 03ebad3cbff0999af885c03e83a506a9d9cb5919 (diff) | |
download | Hyprland-99aa34db6e3529717961cf31ad08ab000d66cd77.tar.gz Hyprland-99aa34db6e3529717961cf31ad08ab000d66cd77.zip |
CMake: install files (instead of Makefile)
Diffstat (limited to 'hyprctl/CMakeLists.txt')
-rw-r--r-- | hyprctl/CMakeLists.txt | 15 |
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) |