# HG changeset patch # User unc0rr # Date 1209294063 0 # Node ID f9efe907828ff0c2d405c87cf5093c4407922883 # Parent dfb29b135a5fcb5cfd14692f3a29da685ed355a4 Add win32 resource compilation under mingw (used sim-im srcs as example) diff -r dfb29b135a5f -r f9efe907828f QTfrontend/CMakeLists.txt --- a/QTfrontend/CMakeLists.txt Sun Apr 27 10:36:41 2008 +0000 +++ b/QTfrontend/CMakeLists.txt Sun Apr 27 11:01:03 2008 +0000 @@ -70,13 +70,20 @@ playrecordpage.cpp ${CMAKE_CURRENT_BINARY_DIR}/hwconsts.cpp selectWeapon.cpp - itemNum.cpp + itemNum.cpp input_ip.cpp weaponItem.cpp) -if (WIN32) +if(MINGW) + # resource compilation for mingw + add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o + COMMAND windres -I ${CMAKE_CURRENT_SOURCE_DIR} + -i ${CMAKE_CURRENT_SOURCE_DIR}/res/hedgewars.rc + -o ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o) + set(hwfr_src ${hwfr_src} ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o) +else(MINGW) set(hwfr_src ${hwfr_src} res/hedgewars.rc) -endif (WIN32) +endif(MINGW) set(hwfr_moc_hdrs game.h @@ -109,7 +116,7 @@ SDLs.h playrecordpage.h selectWeapon.h - itemNum.h + itemNum.h input_ip.h weaponItem.h)