From a5a0f55149b6f1531bac401d5f57f5939af1d1f1 Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Sun, 12 Feb 2023 13:23:28 -0800 Subject: [PATCH] Add icons and desktop files to UEFITool install target for Linux and FreeBSD --- UEFITool/CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/UEFITool/CMakeLists.txt b/UEFITool/CMakeLists.txt index 7043ccc..bef8a7e 100644 --- a/UEFITool/CMakeLists.txt +++ b/UEFITool/CMakeLists.txt @@ -140,9 +140,15 @@ SET_TARGET_PROPERTIES(UEFITool PROPERTIES AUTOUIC ON ) -IF(UNIX AND (NOT APPLE)) - SET_TARGET_PROPERTIES(UEFITool PROPERTIES - OUTPUT_NAME uefitool) +IF(UNIX AND (NOT APPLE) AND (NOT CYGWIN)) + SET_TARGET_PROPERTIES(UEFITool PROPERTIES OUTPUT_NAME uefitool) + INSTALL(FILES icons/uefitool_16x16.png DESTINATION share/icons/hicolor/16x16/apps RENAME uefitool.png) + INSTALL(FILES icons/uefitool_32x32.png DESTINATION share/icons/hicolor/32x32/apps RENAME uefitool.png) + INSTALL(FILES icons/uefitool_64x64.png DESTINATION share/icons/hicolor/64x64/apps RENAME uefitool.png) + INSTALL(FILES icons/uefitool_128x128.png DESTINATION share/icons/hicolor/128x128/apps RENAME uefitool.png) + INSTALL(FILES icons/uefitool_256x256.png DESTINATION share/icons/hicolor/256x256/apps RENAME uefitool.png) + INSTALL(FILES icons/uefitool_512x512.png DESTINATION share/icons/hicolor/512x512/apps RENAME uefitool.png) + INSTALL(FILES uefitool.desktop DESTINATION share/applications) ENDIF() INSTALL(TARGETS UEFITool BUNDLE DESTINATION "/Applications" )