2023-12-07 13:41:09 +03:00
|
|
|
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)
|
|
|
|
|
2024-12-02 19:31:22 +03:00
|
|
|
pkg_check_modules(hyprpm_deps REQUIRED IMPORTED_TARGET tomlplusplus hyprutils>=0.2.4)
|
2023-12-07 13:41:09 +03:00
|
|
|
|
|
|
|
add_executable(hyprpm ${SRCFILES})
|
2023-12-13 17:15:03 +03:00
|
|
|
|
2024-12-02 19:31:22 +03:00
|
|
|
target_link_libraries(hyprpm PUBLIC PkgConfig::hyprpm_deps)
|
2024-04-21 19:56:46 +03:00
|
|
|
|
|
|
|
# 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)
|