File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
#icons
2
- ## application icon
2
+ set (sizes 8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 64x64 72x72 80x80 96x96 128x128 192x192 256x256 512x512)
3
+
4
+ # Install application icon
3
5
install (FILES ${CMAKE_SOURCE_DIR} /images/icons/qgis_icon.svg RENAME qgis.svg DESTINATION share/icons/hicolor/scalable/apps)
4
- install (FILES ${CMAKE_SOURCE_DIR} /images/icons/qgis-icon-16x16.png RENAME qgis.png DESTINATION share/icons/hicolor/16x16/apps)
5
- install (FILES ${CMAKE_SOURCE_DIR} /images/icons/qgis-icon-512x512.png RENAME qgis.png DESTINATION share/icons/hicolor/512x512/apps)
6
+ foreach (size ${sizes} )
7
+ install (FILES ${CMAKE_CURRENT_SOURCE_DIR} /icons/qgis-icon${size} .png RENAME qgis.png DESTINATION share/icons/hicolor/${size} /apps/)
8
+ endforeach ()
6
9
7
10
# Install MIME type icon
8
11
install (FILES ${CMAKE_SOURCE_DIR} /images/icons/qgis_mime_icon.svg RENAME qgis-mime.svg DESTINATION share/icons/hicolor/scalable/mimetypes)
9
- foreach (size 8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 64x64 72x72 80x80 96x96 128x128 192x192 256x256 512x512 )
10
- install (FILES ${CMAKE_CURRENT_SOURCE_DIR} /icons// qgis-mime-icon${size} .png RENAME qgis-mime.png DESTINATION share/icons/hicolor/${size} /mimetypes/)
12
+ foreach (size ${sizes} )
13
+ install (FILES ${CMAKE_CURRENT_SOURCE_DIR} /icons/qgis-mime-icon${size} .png RENAME qgis-mime.png DESTINATION share/icons/hicolor/${size} /mimetypes/)
11
14
endforeach ()
12
15
13
16
# Install QGIS file formats icons
14
17
foreach (_type qgs qlr qml qpt)
15
18
install (FILES ${CMAKE_SOURCE_DIR} /images/icons/qgis_${_type} _icon.svg RENAME qgis_${_type} .svg DESTINATION share/icons/hicolor/scalable/mimetypes/)
16
- foreach (size 8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 64x64 72x72 80x80 96x96 128x128 192x192 256x256 512x512 )
19
+ foreach (size ${sizes} )
17
20
install (FILES ${CMAKE_CURRENT_SOURCE_DIR} /icons/qgis-${_type}${size} .png RENAME qgis-${_type} .png DESTINATION share/icons/hicolor/${size} /mimetypes/)
18
21
endforeach ()
19
22
endforeach ()
You can’t perform that action at this time.
0 commit comments