added icon on windows

This commit is contained in:
Anselme 2016-05-30 13:00:32 +02:00
parent e32e3681c7
commit a7044584c0
3 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,14 @@ cmake_minimum_required(VERSION 2.8)
# choose source file
file(GLOB EXEC_SRC_LIST src/*.cpp)
file(GLOB RESOURCES_FILES src/*.h resources.qrc src/*.ui shaders/*.glsl)
if(MINGW)
file(GLOB RESOURCE_ICON_FILE icon.rc)
list(APPEND RESOURCES_FILES ${RESOURCE_ICON_FILE})
set(CMAKE_RC_COMPILER_INIT windres)
ENABLE_LANGUAGE(RC)
SET(CMAKE_RC_COMPILE_OBJECT
"<CMAKE_RC_COMPILER> -i <SOURCE> -o <OBJECT>")
endif(MINGW)
set(EXTRA_INCLUDES src)

BIN
PixelWars.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

1
icon.rc Normal file
View File

@ -0,0 +1 @@
icon ICON PixelWars.ico