@ -108,18 +108,6 @@ endif( )
# # # # # # # # # # # s l a v e p a r t e n d s h e r e # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # #
# # # # # C M P 0 0 2 6 s t a t e s w e s h o u l d n o t r e a d t h e L O C A T I O N p r o p e r t y o f a t a r g e t ,
# # # # # a n d s h o u l d b e u s i n g g e n e r a t o r s i n s t e a d . W e c a n ' t d o t h a t h e r e h o w e v e r
# # # # # b e c a u s e w e n e e d t h e v a l u e o f t h e p r o p e r t y a t c o n f i g u r e t i m e .
if ( POLICY CMP0026 )
cmake_policy ( PUSH )
cmake_policy ( SET CMP0026 OLD )
endif ( POLICY CMP0026 )
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # #
# # # # # tde_install_icons ( <icons...> THEME <svgicons> DESTINATION <destdir> )
@ -252,15 +240,53 @@ macro( tde_file_to_cpp _src _dst _var )
endmacro ( )
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # #
# # # # # tde_get_library_filename ( <var> <target> )
function ( tde_get_library_filename _filename _target )
get_target_property ( _type ${ _target } TYPE )
if ( "${_type}" MATCHES "_LIBRARY" )
get_target_property ( _output_prefix ${ _target } PREFIX )
if ( "${_output_prefix}" STREQUAL "_output_prefix-NOTFOUND" )
if ( "${_type}" MATCHES "STATIC_" )
set ( _output_prefix "${CMAKE_STATIC_LIBRARY_PREFIX}" )
elseif ( "${_type}" MATCHES "SHARED_" )
set ( _output_prefix "${CMAKE_SHARED_LIBRARY_PREFIX}" )
elseif ( "${_type}" MATCHES "MODULE_" )
set ( _output_prefix "${CMAKE_SHARED_MODULE_PREFIX}" )
else ( )
set ( _output_prefix "" )
endif ( )
endif ( )
get_target_property ( _output_suffix ${ _target } SUFFIX )
if ( "${_output_suffix}" STREQUAL "_output_suffix-NOTFOUND" )
if ( "${_type}" MATCHES "STATIC_" )
set ( _output_suffix "${CMAKE_STATIC_LIBRARY_SUFFIX}" )
elseif ( "${_type}" MATCHES "SHARED_" )
set ( _output_suffix "${CMAKE_SHARED_LIBRARY_SUFFIX}" )
elseif ( "${_type}" MATCHES "MODULE_" )
set ( _output_suffix "${CMAKE_SHARED_MODULE_SUFFIX}" )
else ( )
set ( _output_suffix "" )
endif ( )
endif ( )
get_target_property ( _output ${ _target } OUTPUT_NAME )
set ( ${ _filename } "${_output_prefix}${_output}${_output_suffix}" PARENT_SCOPE )
else ( )
set ( ${ _filename } "" PARENT_SCOPE )
endif ( )
endfunction ( )
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # #
# # # # # tde_install_la_file ( <target> <destination> )
macro ( tde_install_la_file _target _destination )
get_target_property ( _target_location ${ _target } LOCATION )
tde_get_library_filename( _soname ${ _target } )
get_target_property ( _target_release ${ _target } RELEASE )
get_filename_component ( _soname ${ _target_location } NAME )
if ( _target_release )
string ( REPLACE "-${_target_release}" "" _soname_base "${_soname}" )
else ( )
@ -453,11 +479,9 @@ endmacro( __tde_internal_process_sources )
macro ( tde_install_libtool_file _target _destination )
get_target_property ( _target_location ${ _target } LOCATION )
get_target_property ( _target_release ${ _target } RELEASE )
# g e t . s o n a m e
get_filename_component ( _soname ${ _target_location } NAME )
tde_get_library_filename ( _soname ${ _target } )
get_target_property ( _target_release ${ _target } RELEASE )
if ( _target_release )
string ( REPLACE "-${_target_release}" "" _soname_base "${_soname}" )
else ( )
@ -840,8 +864,7 @@ macro( tde_add_library _arg_target )
if ( "SHARED" STREQUAL ${ _type } AND NOT _no_export )
# g e t t a r g e t p r o p e r t i e s : o u t p u t n a m e , v e r s i o n , s o v e r s i o n
get_target_property ( _output ${ _target } LOCATION )
get_filename_component ( _output ${ _output } NAME )
tde_get_library_filename ( _output ${ _target } )
get_target_property ( _version ${ _target } VERSION )
get_target_property ( _soversion ${ _target } SOVERSION )
@ -861,8 +884,7 @@ macro( tde_add_library _arg_target )
# i n s t a l l b a s e s o n a m e
if ( _release AND NOT "STATIC" STREQUAL ${ _type } )
get_target_property ( _output ${ _target } LOCATION )
get_filename_component ( _soname ${ _output } NAME )
tde_get_library_filename ( _output ${ _target } )
string ( REPLACE "-${_release}" "" _soname_base "${_soname}" )
if ( _version )
get_target_property ( _soversion ${ _target } SOVERSION )
@ -2101,13 +2123,3 @@ macro( tde_setup_dbus )
endif ( )
endmacro ( )
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # #
# # # # # R e s t o r e C M P 0 0 2 6 p o l i c y
if ( POLICY CMP0026 )
cmake_policy ( POP )
endif ( POLICY CMP0026 )