Skip to content

Commit

Permalink
cmake: add SOVERSION for typekits and plugins
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>
  • Loading branch information
Ruben Smits committed Jun 15, 2015
1 parent ff33781 commit 0c43592
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/rtt_macros.cmake
Expand Up @@ -41,8 +41,13 @@ ENDMACRO( GLOBAL_ADD_SRC )
#
macro(ADD_RTT_TYPEKIT name version)
ADD_LIBRARY(${name}-${OROCOS_TARGET}_plugin SHARED ${ARGN})
STRING( REGEX MATCHALL "[0-9]+" versions ${version} )
LIST( GET versions 0 version_major)
LIST( GET versions 1 version_minor)
LIST( GET versions 2 version_patch)
SET_TARGET_PROPERTIES( ${name}-${OROCOS_TARGET}_plugin PROPERTIES
VERSION "${version}"
SOVERSION "${version_major}.${version_minor}"
OUTPUT_NAME ${name}-${OROCOS_TARGET}
COMPILE_DEFINITIONS "${RTT_DEFINITIONS}"
COMPILE_FLAGS "${CMAKE_CXX_FLAGS_ADD}"
Expand Down Expand Up @@ -110,8 +115,13 @@ endmacro(ADD_RTT_TYPEKIT name)
#
macro(ADD_RTT_PLUGIN name version)
ADD_LIBRARY(${name}-${OROCOS_TARGET}_plugin SHARED ${ARGN})
STRING( REGEX MATCHALL "[0-9]+" versions ${version} )
LIST( GET versions 0 version_major)
LIST( GET versions 1 version_minor)
LIST( GET versions 2 version_patch)
SET_TARGET_PROPERTIES( ${name}-${OROCOS_TARGET}_plugin PROPERTIES
VERSION "${version}"
SOVERSION "${version_major}.${version_minor}"
OUTPUT_NAME ${name}-${OROCOS_TARGET}
COMPILE_DEFINITIONS "${RTT_DEFINITIONS}"
COMPILE_FLAGS "${CMAKE_CXX_FLAGS_ADD}"
Expand Down

0 comments on commit 0c43592

Please sign in to comment.