diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f0f02c89..a563ebd23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ) diff --git a/src/libtomahawk/CMakeLists.txt b/src/libtomahawk/CMakeLists.txt index 4aec4e9e9..fe54f76c8 100644 --- a/src/libtomahawk/CMakeLists.txt +++ b/src/libtomahawk/CMakeLists.txt @@ -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)