CMakeLists.txt: Add icon to DDNet executable on Windows

This commit is contained in:
heinrich5991 2017-03-07 15:32:11 +01:00
parent a6983d329c
commit 51b4a793b8
3 changed files with 12 additions and 0 deletions

View file

@ -294,8 +294,13 @@ if(CLIENT)
${SDL2_INCLUDE_DIRS}
)
list(APPEND TARGETS_OWN ${TARGET_CLIENT})
if(TARGET_OS STREQUAL "windows")
target_sources(${TARGET_CLIENT} PRIVATE "other/icons/DDNet.rc")
endif()
endif()
########################################################################
# SERVER
########################################################################
@ -325,6 +330,11 @@ if(MYSQL)
target_include_directories(${TARGET_SERVER} PRIVATE ${MYSQL_INCLUDE_DIRS})
endif()
if(TARGET_OS STREQUAL "windows")
target_sources(${TARGET_SERVER} PRIVATE "other/icons/DDNet-Server.rc")
endif()
########################################################################
# VARIOUS TARGETS
########################################################################

View file

@ -0,0 +1 @@
ID ICON "DDNet-Server.ico"

1
other/icons/DDNet.rc Normal file
View file

@ -0,0 +1 @@
ID ICON "DDNet.ico"