mirror of
https://github.com/hyprwm/hyprwayland-scanner.git
synced 2024-12-21 18:29:49 +01:00
add pkg-config file
This commit is contained in:
parent
b6a9bb8ef0
commit
ff38e27d86
2 changed files with 13 additions and 0 deletions
|
@ -7,6 +7,10 @@ project(hyprwayland-scanner
|
|||
VERSION ${VERSION}
|
||||
)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
set(PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||
|
||||
set(CMAKE_MESSAGE_LOG_LEVEL "STATUS")
|
||||
|
||||
if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
|
||||
|
@ -25,6 +29,8 @@ add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-value
|
|||
|
||||
add_compile_definitions(SCANNER_VERSION="${VERSION}")
|
||||
|
||||
configure_file(hyprwayland-scanner.pc.in hyprwayland-scanner.pc @ONLY)
|
||||
|
||||
# dependencies
|
||||
message(STATUS "Checking deps...")
|
||||
|
||||
|
@ -38,3 +44,4 @@ target_link_libraries(hyprwayland-scanner PRIVATE rt Threads::Threads PkgConfig:
|
|||
|
||||
# Installation
|
||||
install(TARGETS hyprwayland-scanner)
|
||||
install(FILES ${CMAKE_BINARY_DIR}/hyprwayland-scanner.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||
|
|
6
hyprwayland-scanner.pc.in
Normal file
6
hyprwayland-scanner.pc.in
Normal file
|
@ -0,0 +1,6 @@
|
|||
hyprwayland_scanner=@PREFIX@/bin/hyprwayland-scanner
|
||||
|
||||
Name: HyprWayland Scanner
|
||||
URL: https://github.com/hyprwm/hyprwayland-scanner
|
||||
Description: A Hyprland version of wayland-scanner in and for C++
|
||||
Version: @VERSION@
|
Loading…
Reference in a new issue