add icon in .exe generation for win32

This commit is contained in:
Eduardo Bart 2011-11-17 00:53:17 -02:00
parent 69a70f28a5
commit b736e52b29
4 changed files with 10 additions and 1 deletions

View File

@ -166,6 +166,13 @@ IF(WIN32)
SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -mwindows")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
ENDIF(NO_CONSOLE)
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/icon.o
COMMAND ${CMAKE_RC_COMPILER}
-I${CMAKE_CURRENT_SOURCE_DIR}/src/otclient/win32icon
-i${CMAKE_CURRENT_SOURCE_DIR}/src/otclient/win32icon/icon.rc
-o ${CMAKE_CURRENT_BINARY_DIR}/icon.o)
SET(SOURCES ${SOURCES} icon.o)
ELSE(WIN32)
SET(ADDITIONAL_LIBRARIES -lpthread)
SET(SOURCES ${SOURCES} src/framework/platform/x11platform.cpp)

3
TODO
View File

@ -12,4 +12,5 @@ make otui syntax more like css
a real working border and background property in otui
load state styles in order
grid layout
fix moving windows and tooltips conflicts
fix moving windows and tooltips conflicts
todo display otclient icon in window bar

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

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