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")
|
SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -mwindows")
|
||||||
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
ENDIF(NO_CONSOLE)
|
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)
|
ELSE(WIN32)
|
||||||
SET(ADDITIONAL_LIBRARIES -lpthread)
|
SET(ADDITIONAL_LIBRARIES -lpthread)
|
||||||
SET(SOURCES ${SOURCES} src/framework/platform/x11platform.cpp)
|
SET(SOURCES ${SOURCES} src/framework/platform/x11platform.cpp)
|
||||||
|
|
3
TODO
3
TODO
|
@ -12,4 +12,5 @@ make otui syntax more like css
|
||||||
a real working border and background property in otui
|
a real working border and background property in otui
|
||||||
load state styles in order
|
load state styles in order
|
||||||
grid layout
|
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 |
|
@ -0,0 +1 @@
|
||||||
|
IDI_ICON1 ICON DISCARDABLE "icon.ico"
|
Loading…
Reference in New Issue