added resource file to win build

This commit is contained in:
Vadim Grigoruk 2018-05-21 14:20:29 +03:00
parent 122ced71a7
commit b2cd6b8cf6
1 changed files with 10 additions and 1 deletions

View File

@ -334,9 +334,18 @@ if(APPLE)
endif()
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()
add_executable(tic80 ${TIC80_SRC})
endif()
target_include_directories(tic80 PRIVATE include)