##### install icons #############################

tde_install_icons( kpilot kpilotDaemon )


##### install other icons #######################

unset( _other_icons )
file( GLOB _icon_files *-*.png *-*.mng *-*.svg* )
foreach( _icon_file ${_icon_files} )
  string( REGEX REPLACE ".*-([^.]*)\\.(png|mng|svg.*)$" "\\1" _icon ${_icon_file} )
  if( NOT "${_icon}" STREQUAL "kpilot"
      AND NOT "${_icon}" STREQUAL "kpilotDaemon"
      AND NOT "${_icon}" STREQUAL "splash" )
    list( APPEND _other_icons "${_icon}" )
  endif( )
endforeach( )

if( _other_icons )
  list( SORT _other_icons )
  list( REMOVE_DUPLICATES _other_icons )

  tde_install_icons( ${_other_icons} DESTINATION "${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons" )
endif( )


##### other data ################################

install( FILES kpilot-splash.png
  DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/pics
)
