Skip to content

Commit

Permalink
Sync icon installation logic to legacy makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Jan 23, 2014
1 parent e17a06e commit 78d0a22
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion icon/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
SET(ICON_FILES
sdl_instead.png
sdl_instead.ico
sdl_instead.svg
sdl_instead_1.png
)

IF(WIN32)
SET(PLATFORM_ICON_FILE sdl_instead_1x32.png)
ELSE(WIN32)
SET(PLATFORM_ICON_FILE sdl_instead_1.png)
ENDIF(WIN32)

IF(SYSTEMWIDE)
INSTALL(FILES ${ICON_FILES} DESTINATION ${ICONDIR})
INSTALL(FILES ${PLATFORM_ICON_FILE} DESTINATION ${ICONDIR} RENAME sdl_instead_1.png)
ELSEIF(STANDALONE)
INSTALL(FILES ${ICON_FILES} DESTINATION ${STANDALONEDIR}/icon)
INSTALL(FILES ${PLATFORM_ICON_FILE} DESTINATION ${STANDALONEDIR}/icon RENAME sdl_instead_1.png)
ENDIF(SYSTEMWIDE)

0 comments on commit 78d0a22

Please sign in to comment.