mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
cmake: add VERSION and SOVERSION properties to monado shared library
This commit is contained in:
parent
0f713282da
commit
f17bb81620
|
@ -1,4 +1,4 @@
|
|||
# Copyright 2019-2023, Collabora, Ltd.
|
||||
# Copyright 2019-2024, Collabora, Ltd.
|
||||
# SPDX-License-Identifier: BSL-1.0
|
||||
|
||||
add_library(monado SHARED monado.c libmonado.def)
|
||||
|
@ -9,6 +9,10 @@ target_include_directories(
|
|||
$<INSTALL_INTERFACE:${LIBMONADO_HEADER_DIR}>
|
||||
)
|
||||
|
||||
set_target_properties(
|
||||
monado PROPERTIES VERSION ${CMAKE_PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}
|
||||
)
|
||||
|
||||
install(TARGETS monado RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
install(FILES monado.h DESTINATION ${LIBMONADO_HEADER_DIR})
|
||||
|
||||
|
|
Loading…
Reference in a new issue