[CMake] Assmebly language support in Cmake

Andy Cedilnik andy.cedilnik at kitware.com
Sat May 28 09:18:44 EDT 2005


Hi Axel,

There is no direct support for assembly language in CMake. That said, 
you can use custom command to compile assembly code into an object file, 
and then add the object file like a source file.

          Andy

Axel Wachtler wrote:

> Hallo all,
>
> I use cmake in a embedded project, where I come to the
> point, that I need to link object files from .c and .s
> into one application.
>
> http://www.cmake.org/pipermail/cmake/2003-February/001218.html
> Here was reported, that this is only possible with custom targets
> and building a separate library from the assembly object files.
>
> - Is this still the case for cmake 2.0.5/2.0.6 ?
> - How can I achieve building a library from object files in cmake,
>   or does this need to be done also with a custom target ?
>
> Best Regards
>
> Axel
>




More information about the CMake mailing list