lottie: support library version in cmake build system.

Change-Id: I494a29cc02ddd5dbba6014f08d27f11da62ecfb3
This commit is contained in:
subhransu mohanty
2018-07-26 09:33:20 +09:00
parent a34f172479
commit 7b4f8a44be

View File

@@ -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)