mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 17:48:19 +00:00
CMakeLists.txt: Add icon to DDNet executable on Windows
This commit is contained in:
parent
a6983d329c
commit
51b4a793b8
|
@ -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
|
||||
########################################################################
|
||||
|
|
1
other/icons/DDNet-Server.rc
Normal file
1
other/icons/DDNet-Server.rc
Normal file
|
@ -0,0 +1 @@
|
|||
ID ICON "DDNet-Server.ico"
|
1
other/icons/DDNet.rc
Normal file
1
other/icons/DDNet.rc
Normal file
|
@ -0,0 +1 @@
|
|||
ID ICON "DDNet.ico"
|
Loading…
Reference in a new issue