cmake and asm?

Boudewijn Rempt boud at valdyas.org
Sat Jan 20 21:38:31 CET 2007


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.

>                                -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)



-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070120/1334abd4/attachment.pgp 


More information about the Kde-buildsystem mailing list