From: Neal Gompa Date: Fri, 14 May 2010 06:13:42 +0000 (-0500) Subject: Added in support for resource compilation in MSVC; Windows support is hopefully compl... X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=4c2cf07e4b6214be9d355859a0d5864e34b37e77;p=lugaru.git Added in support for resource compilation in MSVC; Windows support is hopefully complete from the buildsystem. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7cb9cef..81af4a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,6 +115,16 @@ if(WIN32) ) endif(CMAKE_CROSSCOMPILING) if(NOT CMAKE_CROSSCOMPILING) + if(MSVC) + ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj + COMMAND rc + -I${SRCDIR}/res + -fo${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj + ${SRCDIR}/res/Lugaru.rc + DEPENDS ${SRCDIR}/res/Lugaru.rc + ) + endif(MSVC) + if(MINGW) ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lugaru_resource.obj COMMAND windres -I${SRCDIR}/res @@ -122,6 +132,7 @@ if(WIN32) -i${SRCDIR}/res/Lugaru.rc DEPENDS ${SRCDIR}/res/Lugaru.rc ) + endif(MINGW) endif(NOT CMAKE_CROSSCOMPILING) # !!! FIXME: get rid of this.