[CMAKE]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 1 Nov 2010 16:40:30 +0000 (16:40 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 1 Nov 2010 16:40:30 +0000 (16:40 +0000)
set custom command to compile asm files for MSVC toolchain. They are being preprocessed first.

svn path=/branches/cmake-bringup/; revision=49407

toolchain-msvc.cmake

index 2fdc895..4926705 100644 (file)
@@ -34,6 +34,10 @@ SET(CMAKE_IDL_COMPILER midl)
 SET(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <DEFINES> /I${REACTOS_SOURCE_DIR}/include/psdk /I${REACTOS_BINARY_DIR}/include/psdk /I${REACTOS_SOURCE_DIR}/include /I${REACTOS_SOURCE_DIR}/include/reactos /I${REACTOS_BINARY_DIR}/include/reactos /I${REACTOS_SOURCE_DIR}/include/reactos/wine /I${REACTOS_SOURCE_DIR}/include/crt /I${REACTOS_SOURCE_DIR}/include/crt/mingw32 /fo <OBJECT> <SOURCE>")\r
 SET(CMAKE_IDL_COMPILE_OBJECT "<CMAKE_IDL_COMPILER> <FLAGS> <DEFINES> /win32 /h <OBJECT> <SOURCE>")\r
 \r
+SET(CMAKE_ASM_COMPILE_OBJECT \r
+    "<CMAKE_C_COMPILER> <FLAGS> <DEFINES> /D__ASM__ /D_USE_ML /EP /c <SOURCE> > <OBJECT>.tmp"\r
+    "<CMAKE_ASM_COMPILER> /Fo<OBJECT> /c /Ta <OBJECT>.tmp")\r
+\r
 set(CMAKE_C_FLAGS_INIT "/DWIN32 /D_WINDOWS /W1 /Zm1000")\r
 set(CMAKE_C_FLAGS_DEBUG_INIT "/D_DEBUG /MDd /Zi  /Ob0 /Od")\r
 SET(CMAKE_CXX_FLAGS_DEBUG_INIT "/D_DEBUG /MDd /Zi /Ob0 /Od")\r