From 7b4f8a44be6bdf47be4b67fcf1a671dc67eba346 Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Thu, 26 Jul 2018 09:33:20 +0900 Subject: [PATCH] lottie: support library version in cmake build system. Change-Id: I494a29cc02ddd5dbba6014f08d27f11da62ecfb3 --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a42fbc2..40f8ea6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,16 @@ project( lottie-player LANGUAGES C CXX ) #declare target add_library( lottie-player SHARED "" ) +#declare version of the target +set(player_version_major 0) +set(player_version_minor 0) +set(player_version_patch 1) +set(player_version ${player_version_major}.${player_version_minor}.${player_version_patch} ) +set_target_properties(lottie-player PROPERTIES + VERSION ${player_version} + SOVERSION ${player_version_major} + ) + #declare alias so that library can be used inside the build tree, e.g. when testing add_library(lottie-player::lottie-player ALIAS lottie-player) -- 2.7.4