mirror of
https://github.com/hyprwm/hyprwayland-scanner.git
synced 2024-11-08 06:35:58 +01:00
CMake: add version to install files (#2)
This commit is contained in:
parent
abbade08f1
commit
672a965162
1 changed files with 10 additions and 1 deletions
|
@ -49,8 +49,17 @@ configure_package_config_file(
|
|||
INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/hyprwayland-scanner"
|
||||
PATH_VARS CMAKE_INSTALL_BINDIR
|
||||
)
|
||||
write_basic_package_version_file(
|
||||
"hyprwayland-scanner-config-version.cmake"
|
||||
VERSION "${VERSION}"
|
||||
COMPATIBILITY AnyNewerVersion
|
||||
)
|
||||
|
||||
# Installation
|
||||
install(TARGETS hyprwayland-scanner)
|
||||
install(FILES ${CMAKE_BINARY_DIR}/hyprwayland-scanner.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||
install(FILES ${CMAKE_BINARY_DIR}/hyprwayland-scanner-config.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/hyprwayland-scanner)
|
||||
install(FILES
|
||||
${CMAKE_BINARY_DIR}/hyprwayland-scanner-config.cmake
|
||||
${CMAKE_BINARY_DIR}/hyprwayland-scanner-config-version.cmake
|
||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/hyprwayland-scanner
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue