[CMake] Building Libraries with C and ASM sources
Joe Cotellese
jcotellese at opgate.com
Tue Mar 15 14:44:26 EST 2005
Brad King wrote:
>
> Specify the full path to the .o files both for the OUTPUT of the
> custom command an in the ADD_LIBRARY call:
>
> FOREACH(src ${MY_ASM_SRCS})
> GET_FILENAME_COMPONENT(FILE_BASE ${src} NAME_WE)
> SET(SRC ${CMAKE_CURRENT_SOURCE_DIR}/${src})
> SET(OBJ ${CMAKE_CURRENT_BINARY_DIR}/${FILE_BASE}.o)
> ADD_CUSTOM_COMMAND(OUTPUTS ${OBJ}
> MAIN_DEPENDENCY ${SRC}
> COMMAND nasm
> ARGS -felf ${SRC})
> SET(MY_ASM_OBJS ${MY_ASM_OBJS} ${OBJ})
> ENDFOREACH(src)
>
> ADD_LIBRARY(mylib ${MY_SRCS} ${MY_ASM_OBJS})
>
Brad,
That did the trick. Thanks alot.
Joe Cotellese
--
---------------------[ Ciphire Signature ]----------------------
From: jcotellese at opgate.com signed email body (499 characters)
Date: on 15 March 2005 at 19:47:48 UTC
To: brad.king at kitware.com, cmake at cmake.org
----------------------------------------------------------------
: Ciphire has secured this email against identity theft.
: Free download at www.ciphire.com. The garbled lines
: below are the sender's verifiable digital signature.
----------------------------------------------------------------
00fAAAAAEAAADkOzdC8wEAAAkDAAIAAgACACB4nnrWWTehZZjEm9U4qgSoBbTqS1
+jElcmwlj8MXGVrwEAhMtBRTftIFcIGq9/Z/nBjF1xYtbgnnSvO5NY4xXL+osnAw
NZpxsbJQQRH4L76UaFWQGVvg59apg/t3fb/F4Ebg==
------------------[ End Ciphire Signed Message ]----------------
More information about the CMake
mailing list