added resource file to win build
This commit is contained in:
parent
122ced71a7
commit
b2cd6b8cf6
|
@ -334,9 +334,18 @@ if(APPLE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
add_executable(tic80 WIN32 ${TIC80_SRC})
|
|
||||||
|
set(TIC80_RES ${CMAKE_CURRENT_BINARY_DIR}/tic80res.obj)
|
||||||
|
|
||||||
|
add_custom_command(OUTPUT ${TIC80_RES}
|
||||||
|
COMMAND windres ${CMAKE_CURRENT_SOURCE_DIR}/build/mingw/res.rc ${TIC80_RES})
|
||||||
|
|
||||||
|
add_executable(tic80 WIN32 ${TIC80_SRC} ${TIC80_RES})
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
add_executable(tic80 ${TIC80_SRC})
|
add_executable(tic80 ${TIC80_SRC})
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_include_directories(tic80 PRIVATE include)
|
target_include_directories(tic80 PRIVATE include)
|
||||||
|
|
Loading…
Reference in New Issue