improves versionning of libafbwsc
authorJosé Bollo <jose.bollo@iot.bzh>
Sun, 29 May 2016 08:56:02 +0000 (10:56 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Sun, 29 May 2016 08:56:02 +0000 (10:56 +0200)
Change-Id: I8046c738a7c4fd367d2d7ae6e8fe6fc84054dc06
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
CMakeLists.txt
src/CMakeLists.txt

index 17ee492..7a1a0d0 100644 (file)
@@ -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)
index f41a3a8..ca20665 100644 (file)
@@ -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