]> git.jsancho.org Git - lugaru.git/commitdiff
Added in support for resource compilation in MSVC; Windows support is hopefully compl...
authorNeal Gompa <ngompa13@gmail.com>
Fri, 14 May 2010 06:13:42 +0000 (01:13 -0500)
committerNeal Gompa <ngompa13@gmail.com>
Fri, 14 May 2010 06:13:42 +0000 (01:13 -0500)
CMakeLists.txt

index 7cb9cefffb30dbf7cc7cec516475650ade3da2b6..81af4a836730b166eb7eaa070b8aee711b665df4 100644 (file)
@@ -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.