add icon in .exe generation for win32
This commit is contained in:
parent
69a70f28a5
commit
b736e52b29
|
@ -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)
|
||||
|
|
1
TODO
1
TODO
|
@ -13,3 +13,4 @@ a real working border and background property in otui
|
|||
load state styles in order
|
||||
grid layout
|
||||
fix moving windows and tooltips conflicts
|
||||
todo display otclient icon in window bar
|
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -0,0 +1 @@
|
|||
IDI_ICON1 ICON DISCARDABLE "icon.ico"
|
Loading…
Reference in New Issue