- added ABI version to soname

This fixes #4
This commit is contained in:
alexey.lysiuk 2020-03-02 11:48:06 +02:00 committed by Christoph Oelckers
parent b9d22fb358
commit 4719ad44d8
2 changed files with 10 additions and 0 deletions

View file

@ -1,6 +1,11 @@
cmake_minimum_required( VERSION 2.8.7 )
project(ZMusic)
set(ZMUSIC_VERSION_MAJOR 1)
set(ZMUSIC_VERSION_MINOR 1)
set(ZMUSIC_VERSION_PATCH 0)
set(ZMUSIC_VERSION "${ZMUSIC_VERSION_MAJOR}.${ZMUSIC_VERSION_MINOR}.${ZMUSIC_VERSION_PATCH}")
if( COMMAND cmake_policy )
if( POLICY CMP0011 )
cmake_policy( SET CMP0011 NEW )

View file

@ -173,6 +173,11 @@ if(APPLE)
set_target_properties(zmusiclite PROPERTIES MACOSX_RPATH TRUE)
endif()
set_target_properties(zmusic zmusiclite PROPERTIES
VERSION ${ZMUSIC_VERSION}
SOVERSION ${ZMUSIC_VERSION_MAJOR}
)
install(TARGETS zmusic zmusiclite LIBRARY DESTINATION lib)
install(DIRECTORY ../include/ DESTINATION include FILES_MATCHING PATTERN "*.h*")