@ -939,8 +939,22 @@ macro( tde_add_library _arg_target )
get_target_property ( _soversion ${ _target } SOVERSION )
get_target_property ( _soversion ${ _target } SOVERSION )
set ( _soname "${_soname}.${_soversion}" )
set ( _soname "${_soname}.${_soversion}" )
endif ( )
endif ( )
add_custom_command ( TARGET ${ _target } POST_BUILD
if ( NOT _exclude_from_all )
C O M M A N D l n - s $ { _ s o n a m e } " $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / $ { _ s o n a m e _ b a s e } " )
add_custom_command (
O U T P U T " $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / $ { _ s o n a m e _ b a s e } "
C O M M A N D l n - s $ { _ s o n a m e } " $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / $ { _ s o n a m e _ b a s e } "
D E P E N D S $ { _ t a r g e t }
)
add_custom_target (
$ { _ t a r g e t } + b a s e - s o A L L
D E P E N D S " $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / $ { _ s o n a m e _ b a s e } "
)
else ( )
add_custom_command (
T A R G E T $ { _ t a r g e t } P O S T _ B U I L D
C O M M A N D l n - s $ { _ s o n a m e } " $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / $ { _ s o n a m e _ b a s e } "
)
endif ( )
install ( FILES "${CMAKE_CURRENT_BINARY_DIR}/${_soname_base}" DESTINATION ${ _destination } )
install ( FILES "${CMAKE_CURRENT_BINARY_DIR}/${_soname_base}" DESTINATION ${ _destination } )
endif ( )
endif ( )