1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Install icons on linux in loop

This commit is contained in:
gigas002 2024-06-05 08:19:12 +00:00
parent d8c4d3654f
commit 1bc1755cf6

View File

@ -221,7 +221,13 @@ enable_pch(vcmieditor)
install(TARGETS vcmieditor DESTINATION ${BIN_DIR})
# Install desktop file on Linux
# Install icons and desktop file on Linux
if(NOT WIN32 AND NOT APPLE)
foreach(iconSize 32 48 64 128 256)
install(FILES "icons/mapeditor.${iconSize}x${iconSize}.png"
DESTINATION "share/icons/hicolor/${iconSize}x${iconSize}/apps"
RENAME mapeditor.png
)
endforeach()
install(FILES "vcmieditor.desktop" DESTINATION share/applications)
endif()