feat(assets): add Windows resource file and icon to executables

This commit is contained in:
Kieran Kihn
2025-12-11 10:47:16 +08:00
parent f1f61516f7
commit 206286d191
3 changed files with 9 additions and 2 deletions

View File

@@ -34,7 +34,10 @@ target_link_libraries(uno-game-lib PUBLIC Slint::Slint)
slint_target_sources(uno-game-lib ui/MainWindow.slint)
add_executable(uno-client src/client/main.cpp)
add_executable(uno-client
src/client/main.cpp
assets/uno.rc
)
target_link_libraries(uno-client
PRIVATE uno-game-lib)
@@ -42,7 +45,10 @@ if (WIN32 AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
set_target_properties(uno-client PROPERTIES WIN32_EXECUTABLE ON)
endif ()
add_executable(uno-server src/server/main.cpp)
add_executable(uno-server
src/server/main.cpp
assets/uno.rc
)
target_link_libraries(uno-server
PRIVATE uno-game-lib)
target_link_libraries(uno-server

BIN
assets/uno.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

1
assets/uno.rc Normal file
View File

@@ -0,0 +1 @@
IDI_ICON1 ICON "uno.ico"