From b2cd6b8cf61ccc8b4f0e28027cc682c8e7b2693a Mon Sep 17 00:00:00 2001 From: Vadim Grigoruk Date: Mon, 21 May 2018 14:20:29 +0300 Subject: [PATCH] added resource file to win build --- CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d90b8cb..be8bf58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)