mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-19 06:09:49 +01:00
8c64a4bad7
* core: move to hyprutils for utils Nix: add hyprutils dep * Meson: add hyprutils dep * flake.lock: update --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
29 lines
833 B
CMake
29 lines
833 B
CMake
cmake_minimum_required(VERSION 3.19)
|
|
|
|
project(
|
|
hyprpm
|
|
DESCRIPTION "A Hyprland Plugin Manager"
|
|
)
|
|
|
|
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
|
|
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
|
|
pkg_check_modules(deps REQUIRED IMPORTED_TARGET tomlplusplus hyprutils>=0.1.1)
|
|
|
|
add_executable(hyprpm ${SRCFILES})
|
|
|
|
target_link_libraries(hyprpm PUBLIC PkgConfig::deps)
|
|
|
|
# binary
|
|
install(TARGETS hyprpm)
|
|
|
|
# shell completions
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/hyprpm.bash
|
|
DESTINATION ${CMAKE_INSTALL_DATADIR}/bash-completion/completions
|
|
RENAME hyprpm)
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/hyprpm.fish
|
|
DESTINATION ${CMAKE_INSTALL_DATADIR}/fish/vendor_completions.d)
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/hyprpm.zsh
|
|
DESTINATION ${CMAKE_INSTALL_DATADIR}/zsh/site-functions
|
|
RENAME _hyprpm)
|