cmake: add VERSION and SOVERSION properties to monado shared library

This commit is contained in:
Simon Zeni 2024-03-12 21:26:24 -04:00 committed by Rylie Pavlik
parent 0f713282da
commit f17bb81620

View file

@ -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})