|
|
|
@ -65,10 +65,15 @@ macro( tde_install_icons )
|
|
|
|
|
set( _group "${CMAKE_MATCH_3}" )
|
|
|
|
|
set( _name "${CMAKE_MATCH_4}" )
|
|
|
|
|
|
|
|
|
|
# we must ignore invalid icon names
|
|
|
|
|
if( _type AND _size AND _group AND _name )
|
|
|
|
|
|
|
|
|
|
# autodetect theme
|
|
|
|
|
if( NOT _req_theme )
|
|
|
|
|
if( "${_type}" STREQUAL "cr" )
|
|
|
|
|
set( _theme crystalsvg )
|
|
|
|
|
elseif( "${_type}" STREQUAL "lo" )
|
|
|
|
|
set( _theme locolor )
|
|
|
|
|
endif( "${_type}" STREQUAL "cr" )
|
|
|
|
|
# defaulting
|
|
|
|
|
if( NOT _theme )
|
|
|
|
@ -101,6 +106,8 @@ macro( tde_install_icons )
|
|
|
|
|
install( FILES ${_icon_file} DESTINATION ${_dest}/${_theme}/${_size}x${_size}/${_group}/ RENAME ${_name} )
|
|
|
|
|
endif( "${_size}" STREQUAL "sc" )
|
|
|
|
|
|
|
|
|
|
endif( _type AND _size AND _group AND _name )
|
|
|
|
|
|
|
|
|
|
endforeach( _icon_file )
|
|
|
|
|
endforeach( _icon )
|
|
|
|
|
|
|
|
|
|