Skip to content

Commit

Permalink
Add windows app icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
karnkaul committed Jul 6, 2024
1 parent c4080ec commit aef4e63
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/desktop/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,13 @@ target_link_libraries(${PROJECT_NAME} PRIVATE spaced::lib)
target_sources(${PROJECT_NAME} PRIVATE main.cpp)

set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME NovaSwarm)

if(WIN32)
target_sources(${PROJECT_NAME} PRIVATE windows/app.rc)

set(subsystem $<IF:$<BOOL:$<CONFIG:Debug>>,CONSOLE,WINDOWS>)
target_link_options(${PROJECT_NAME} PRIVATE
/SUBSYSTEM:${subsystem}
/ENTRY:mainCRTStartup
)
endif()
1 change: 1 addition & 0 deletions src/desktop/windows/app.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
IDI_APPLICATION ICON "icon.ico"
Binary file added src/desktop/windows/icon.ico
Binary file not shown.

0 comments on commit aef4e63

Please sign in to comment.