diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2017-12-08 10:31:00 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2017-12-27 12:09:10 +0900 |
commit | 93c8facc371d557bd21773c3bc1571d42b1ac538 (patch) | |
tree | c1edde7014e343c27f1a01756b4309b7cfec0fc6 | |
parent | b5ba32e69bfb43973528636f6fa5365d5c94818a (diff) |
Add SOVERSION
To contain library itself and symlink to library in the image,
add SOVERSION to CMakeList.
Change-Id: I3dc7abc8935dbc5848b741cb8833f2155124518c
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/CMakeLists.txt | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a49952e..124f127 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,7 +19,10 @@ project(libsoundmanager CXX) cmake_minimum_required(VERSION 2.8) set(PROJECT_NAME "Soundmanager client library") -set(PROJECT_VERSION "0.1.0") +set(MAJOR_VERSION "0") +set(MINER_VERSION "1") +set(PATCH_VERSION "1") +set(PROJECT_VERSION ${MAJOR_VERSION}.${MINER_VERSION}.${PATCH_VERSION}) set(PROJECT_PRETTY_NAME "libsm") set(PROJECT_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}) set(PROJECT_LIBDIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 21754ee..c235b81 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -40,6 +40,7 @@ target_link_libraries(${TARGET_LIBSM} afbwsc ${link_libraries} ${libsm_depends_L set_target_properties(${TARGET_LIBSM} PROPERTIES VERSION ${PROJECT_VERSION} + SOVERSION ${MAJOR_VERSION}.${MINER_VERSION} ) if(DEFINED CMAKE_INSTALL_LIBDIR) |