diff options
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/CMakeLists.txt | 3 |
2 files changed, 6 insertions, 0 deletions
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 |