2023-10-14 19:48:05 +02:00
|
|
|
cmake_minimum_required(VERSION 3.19)
|
|
|
|
|
|
|
|
project(
|
|
|
|
hyprctl
|
|
|
|
DESCRIPTION "Control utility for Hyprland"
|
|
|
|
)
|
|
|
|
|
2024-06-11 17:17:45 +02:00
|
|
|
pkg_check_modules(deps REQUIRED IMPORTED_TARGET hyprutils>=0.1.1)
|
|
|
|
|
2024-04-21 18:56:46 +02:00
|
|
|
add_executable(hyprctl "main.cpp")
|
|
|
|
|
2024-08-07 16:28:02 +02:00
|
|
|
target_link_libraries(hyprctl PUBLIC PkgConfig::hyprctl_deps)
|
2024-06-11 17:17:45 +02:00
|
|
|
|
2024-04-21 18:56:46 +02:00
|
|
|
# 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)
|