From: José Bollo Date: Sun, 29 May 2016 08:56:02 +0000 (+0200) Subject: improves versionning of libafbwsc X-Git-Tag: blowfish_2.0.1~62^2~1 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=6881297e1b8f8e0977088d79cbc417d884cac300 improves versionning of libafbwsc Change-Id: I8046c738a7c4fd367d2d7ae6e8fe6fc84054dc06 Signed-off-by: José Bollo --- 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