From 4c2cf07e4b6214be9d355859a0d5864e34b37e77 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Fri, 14 May 2010 01:13:42 -0500 Subject: [PATCH] Added in support for resource compilation in MSVC; Windows support is hopefully complete from the buildsystem. --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) 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. -- 2.39.5