Skip to content

Commit

Permalink
Add icons and desktop files to UEFITool install target for Linux and …
Browse files Browse the repository at this point in the history
…FreeBSD
  • Loading branch information
NikolajSchlej committed Feb 12, 2023
1 parent 4053a8f commit a5a0f55
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions UEFITool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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" )

0 comments on commit a5a0f55

Please sign in to comment.