summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-10-26 17:17:25 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2017-10-30 05:01:01 +0000
commitbdd3bd8d14d51b9153a532411a5e9d439d0cb2e5 (patch)
tree8b126a36fb33492f68a03fb5215e90433eccfeca
parenta3e101c1f05e8135ec4e91cea783b61db50c9442 (diff)
Add a version to the library
To prevent a bitbake package_qa issue, adding version is necessary. So I added a version number of 0.1.0. Bug-AGL : SPEC-1001 Change-Id: Ia0d133122d6287753cc92e645f39e327f206f320 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/CMakeLists.txt5
2 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 03d86f6..57a72d2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,7 +19,7 @@ project(libsoundmanager CXX)
cmake_minimum_required(VERSION 2.8)
set(PROJECT_NAME "Soundmanager client library")
-set(PROJECT_VERSION "1.0")
+set(PROJECT_VERSION "0.1.0")
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 1a34347..21754ee 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -37,6 +37,11 @@ endif(DEFINED DEBUGMODE)
include_directories(${TARGET_LIBSM} ${libsm_depends_INCLUDE_DIRS})
target_link_libraries(${TARGET_LIBSM} afbwsc ${link_libraries} ${libsm_depends_LIBRARIES})
+set_target_properties(${TARGET_LIBSM}
+ PROPERTIES
+ VERSION ${PROJECT_VERSION}
+)
+
if(DEFINED CMAKE_INSTALL_LIBDIR)
INSTALL(TARGETS ${TARGET_LIBSM}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})