From 6881297e1b8f8e0977088d79cbc417d884cac300 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Sun, 29 May 2016 10:56:02 +0200 Subject: [PATCH] improves versionning of libafbwsc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I8046c738a7c4fd367d2d7ae6e8fe6fc84054dc06 Signed-off-by: José Bollo --- CMakeLists.txt | 3 +++ src/CMakeLists.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 17ee492a..7a1a0d01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,9 @@ SET(PROJECT_DESCRIPTION "Secured binder of API for clients of the Application fr SET(PROJECT_VERSION "0.5") SET(PROJECT_URL "https://github.com/iotbzh/afb-daemon") +SET(LIBAFBWSC_VERSION "0.5") +SET(LIBAFBWSC_SOVERSION "0") + INCLUDE(FindPkgConfig) INCLUDE(CheckIncludeFiles) INCLUDE(CheckLibraryExists) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f41a3a88..ca20665b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -73,6 +73,9 @@ INSTALL(TARGETS afb-daemon # build and install libafbwsc ########################################### ADD_LIBRARY(afbwsc SHARED afb-ws.c afb-ws-client.c afb-wsj1.c websock.c afb-common.c) +SET_TARGET_PROPERTIES(afbwsc PROPERTIES + VERSION ${LIBAFBWSC_VERSION} + SOVERSION ${LIBAFBWSC_SOVERSION}) TARGET_LINK_LIBRARIES(afbwsc ${libsystemd_LIBRARIES} -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export-afbwsc.map -- 2.16.6