[c-host] fixed project for cross compliation for Win on Linux

Thanks @fatalis for your guidance on this
This commit is contained in:
Geoffrey McRae
2019-05-22 14:59:19 +10:00
parent 86f4256b5a
commit 108c7d3aaa
8 changed files with 52 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ add_library(platform_Windows STATIC
add_subdirectory("capture")
FIND_PROGRAM(WINDRES_EXECUTABLE NAMES "windres.exe" DOC "windres executable")
FIND_PROGRAM(WINDRES_EXECUTABLE NAMES "x86_64-w64-mingw32-windres" "windres.exe" DOC "windres executable")
ADD_CUSTOM_COMMAND(TARGET platform_Windows POST_BUILD
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
COMMAND ${WINDRES_EXECUTABLE} -i resource.rc -o "${PROJECT_BINARY_DIR}/resource.o"