From 93b10b8d848afaef2e3f3fb61751472bbd68ec27 Mon Sep 17 00:00:00 2001 From: Stephan Lachnit Date: Mon, 22 Aug 2022 13:25:17 +0200 Subject: [PATCH] CMake: add SOVERSION Signed-off-by: Stephan Lachnit --- CMakeLists.txt | 2 +- lib/CMakeLists.txt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 42404b0..bbd54cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # VDT Math Library cmake_minimum_required(VERSION 3.2 FATAL_ERROR) -project (Vdt) +project (Vdt VERSION 0.4.4) #------------------------------------------------------------------------------- # Include the defaults diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 09c9bc3..55d34f8 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -18,6 +18,12 @@ endif() # The library ADD_LIBRARY(vdt ${SRC_DIR}/vdtMath_signatures.cc ${INC_DIR}/vdtMath.h ) +# Add SOVERSION to lib +set_target_properties(vdt + PROPERTIES + VERSION ${PROJECT_VERSION} + SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}) + # Installation of the lib INSTALL(TARGETS vdt DESTINATION lib)