Skip to content

Commit

Permalink
Project: Add icon for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
VoiEiSeOnSuomiServine committed Mar 22, 2024
1 parent 6b1b40f commit 42c357f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,14 @@ if(UNIX)
set(OS_LINK X11)
endif()


if(WIN32)
enable_language("RC")
set (OS_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/res/resources.rc)
endif()

qt_add_executable(DesktopZephyr
${SOURCES} ${OS_SOURCES}
${SOURCES} ${OS_SOURCES}
)

if(WIN32)
Expand Down
Binary file added res/icon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions res/resources.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
IDI_ICON1 ICON "icon.ico"

0 comments on commit 42c357f

Please sign in to comment.