From 022c01767829d78b8c4498987128666a6031004e Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 26 Oct 2017 09:52:39 +0200 Subject: Add version to library Change-Id: I44613239e707871ffd8c5c9e4e0b00562ea45a92 Signed-off-by: Romain Forlot --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1a34347..220ded9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -27,6 +27,10 @@ link_libraries(-Wl,--as-needed -Wl,--gc-sections -Wl,--no-undefined) add_library(${TARGET_LIBSM} SHARED ${libsm_sources}) target_compile_options(${TARGET_LIBSM} PUBLIC ${libsm_depends_CFLAGS}) +set_target_properties(${TARGET_LIBSM} + PROPERTIES + VERSION ${PROJECT_VERSION} + ) if(DEFINED DEBUGMODE) target_compile_options(${TARGET_LIBSM} PRIVATE -g -O0) -- cgit 1.2.3-korg