libsrslte_rf: add library version

This patch adds version string to the 'libsrslte_rf' library.
This results in the library being built as
    libsrslte_rf.so.20.04.2
with the following symbolic links
    libsrslte_rf.so.0 -> libsrslte_rf.so.20.04.2
    libsrslte_rf.so -> libsrslte_rf.so.0

The SRSLTE_SOVERSION variable should be increased with each backwards
incompatible change of the library.

Signed-off-by: Jan Remes <jan.remes@invasys.com>
This commit is contained in:
Jan Remeš 2020-09-30 10:24:21 +02:00 committed by Andre Puschmann
parent a94f08f70d
commit 8c7b7cc55a
2 changed files with 3 additions and 1 deletions

View File

@ -22,3 +22,4 @@ SET(SRSLTE_VERSION_MAJOR 20)
SET(SRSLTE_VERSION_MINOR 10)
SET(SRSLTE_VERSION_PATCH 0)
SET(SRSLTE_VERSION_STRING "${SRSLTE_VERSION_MAJOR}.${SRSLTE_VERSION_MINOR}.${SRSLTE_VERSION_PATCH}")
SET(SRSLTE_SOVERSION 0)

View File

@ -66,6 +66,7 @@ if(RF_FOUND)
add_library(srslte_rf SHARED ${SOURCES_RF})
target_link_libraries(srslte_rf srslte_rf_utils srslte_phy)
set_target_properties(srslte_rf PROPERTIES VERSION ${SRSLTE_VERSION_STRING} SOVERSION ${SRSLTE_SOVERSION})
if (UHD_FOUND)
target_link_libraries(srslte_rf ${UHD_LIBRARIES})