*/}}
Browse Source

Add icon configuration on windows

YimingWu 1 month ago
parent
commit
6f2cf4c33c
2 changed files with 5 additions and 0 deletions
  1. 4 0
      CMakeLists.txt
  2. 1 0
      Resources/icon.rc

+ 4 - 0
CMakeLists.txt

@@ -58,6 +58,9 @@ file(MAKE_DIRECTORY "BuildResources")
 embed_resource("Resources/splash.png" "BuildResources/data_splash.c" "DATA_SPLASH")
 embed_resource("Resources/splash_highdpi.png" "BuildResources/data_splash_highdpi.c" "DATA_SPLASH_HIGHDPI")
 
+if(WIN32)
+endif()
+
 include_directories(
     ${LAGUI_INCLUDE_DIRS_ALL}
 )
@@ -68,6 +71,7 @@ file(GLOB_RECURSE OurPaintFiles
     ourtranslations_es-ES.c
     BuildResources/data_splash.c
     BuildResources/data_splash_highdpi.c
+    Resources/icon.rc
 )
 
 add_executable(OurPaint ${OurPaintFiles})

+ 1 - 0
Resources/icon.rc

@@ -0,0 +1 @@
+IDI_ICON1 ICON DISCARDABLE "icon.ico"