Commit 41fd122f authored by Rashad Kanavath's avatar Rashad Kanavath

BUG: Monteverdi: install icons and desktop file with MonteverdiGui module

parent 5c73905c
......@@ -7,4 +7,44 @@ set( OTBMonteverdiGUI_INCLUDE_DIRS
${OTBMonteverdiGUI_BINARY_DIR}/src
)
set(OTBMonteverdiGUI_DATA_DIR "${CMAKE_SOURCE_DIR}/Utilities/Data")
if (UNIX AND NOT APPLE)
# -------------------------
# Install icons
# following freedesktop recommandations
# http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
# The different icon sizes installed
# According to the specs, the 48x48 icon is mandatory, others are optional
set( icon_sizes 16 32 48 128 )
foreach( icon_size ${icon_sizes} )
install(FILES ${OTBMonteverdiGUI_DATA_DIR}/Icons/monteverdi-${icon_size}x${icon_size}.png
DESTINATION share/icons/hicolor/${icon_size}x${icon_size}/apps
RENAME monteverdi.png)
endforeach()
# Fallback on "/usr/share/pixmaps"
# See http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#directory_layout
install(FILES ${OTBMonteverdiGUI_DATA_DIR}/Icons/monteverdi-32x32.png
DESTINATION share/pixmaps
RENAME monteverdi.png)
install(FILES ${OTBMonteverdiGUI_DATA_DIR}/Icons/monteverdi-splash.png
DESTINATION share/pixmaps
RENAME monteverdi-splash.png)
install(FILES ${OTBMonteverdiGUI_DATA_DIR}/Icons/monteverdi-32x32.xpm
DESTINATION share/pixmaps
RENAME monteverdi.xpm)
# -------------------------
# Install freedesktop entry
install(FILES ${OTBMonteverdiGUI_DATA_DIR}/monteverdi.desktop
DESTINATION share/applications)
endif()
otb_module_impl()
if (UNIX AND NOT APPLE)
# -------------------------
# Install icons
# following freedesktop recommandations
# http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
# The different icon sizes installed
# According to the specs, the 48x48 icon is mandatory, others are optional
set( icon_sizes 16 32 48 128 )
foreach( icon_size ${icon_sizes} )
install(FILES Icons/monteverdi-${icon_size}x${icon_size}.png
DESTINATION share/icons/hicolor/${icon_size}x${icon_size}/apps
RENAME monteverdi.png
COMPONENT Resources)
endforeach()
# Fallback on "/usr/share/pixmaps"
# See http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#directory_layout
install(FILES Icons/monteverdi-32x32.png
DESTINATION share/pixmaps
RENAME monteverdi.png
COMPONENT Resources)
install(FILES Icons/monteverdi-splash.png
DESTINATION share/pixmaps
RENAME monteverdi-splash.png
COMPONENT Resources)
install(FILES Icons/monteverdi-32x32.xpm
DESTINATION share/pixmaps
RENAME monteverdi.xpm
COMPONENT Resources)
# -------------------------
# Install freedesktop entry
install(FILES monteverdi.desktop
DESTINATION share/applications
COMPONENT Resources)
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment