1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-17 22:38:33 +01:00

Set SOVERSION of libtomahawk to current Tomahawk version, we won't give any ABI guarantee in the foreseeable future

This commit is contained in:
Dominik Schmidt 2013-01-18 01:26:47 +01:00
parent a30f1f94e2
commit 79fff5ce0e
2 changed files with 11 additions and 1 deletions

View File

@ -62,10 +62,12 @@ ENDIF()
# base string used in release and unstable builds
SET( TOMAHAWK_VERSION ${TOMAHAWK_VERSION_MAJOR}.${TOMAHAWK_VERSION_MINOR}.${TOMAHAWK_VERSION_PATCH} )
SET(TOMAHAWK_VERSION_SHORT "${TOMAHAWK_VERSION}")
IF( TOMAHAWK_VERSION_RC )
SET( TOMAHAWK_VERSION ${TOMAHAWK_VERSION}rc${TOMAHAWK_VERSION_RC} )
ENDIF()
# additional info for non-release builds
IF( NOT BUILD_RELEASE AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git/" )
INCLUDE( CMakeDateStamp )

View File

@ -429,7 +429,15 @@ qt_wrap_ui(libUI_H ${libUI})
SET( libSources ${libSources} ${libUI_H} )
add_library( tomahawklib SHARED ${libSources})
set_target_properties(tomahawklib PROPERTIES AUTOMOC TRUE)
set_target_properties(
tomahawklib
PROPERTIES
AUTOMOC TRUE
VERSION ${TOMAHAWK_VERSION_SHORT}
SOVERSION ${TOMAHAWK_VERSION_SHORT}
)
qt5_use_modules(tomahawklib Widgets Network Sql WebKitWidgets Concurrent Xml UiTools Svg)
IF(QCA2_FOUND)