cmake and asm?
Alexander Neundorf
neundorf at kde.org
Sun Jan 21 01:41:37 CET 2007
Hi,
On Saturday 20 January 2007 21:38, Boudewijn Rempt wrote:
> On Saturday 20 January 2007 17:36, Alexander Neundorf wrote:
> > For now it should be possible to do something like the following:
> > create a custom command which processes the asm file:
> >
> > add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o
> > COMMAND as ... ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S
>
> Eh... What do I put in place of the triple dots? I'm very much a newbie so
> cmake is a black box to me.
The call to the assembler (as).
See the cmake manpage for the documentation for add_custom_command() and
autotools generated makefile for the exact call to as.
> > -o ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o
> > DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/asm_scale.S )
> >
> > and then add the object file to the target:
> >
> > add_executable(foo ... ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o )
>
> Could I also do:
>
> kde4_add_library(kritaui SHARED ${kritaui_LIB_SRCS}
> ${CMAKE_CURRENT_BINARY_DIR}/asm_scale.o)
Yes, exactly.
Bye
Alex
--
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org - http://www.kde.org
alex AT neundorf.net - http://www.neundorf.net
More information about the Kde-buildsystem
mailing list