[CMake] Compiling assembler files with C code

Gerhard Gappmeier gerhard.gappmeier at ascolab.com
Thu Oct 23 05:36:56 EDT 2008


Hi,

thx a lot, this works.

Hendrik Sattler schrieb:
> Gerhard Gappmeier schrieb:
>   
>> Hi all,
>>
>> I want to compile an assembler file with my C sources.
>>
>> A simple example how to compile this on the command line looks like that:
>> "gcc cas32test.c cas32.s -o cas32test"
>>     
>
> -------
> project(cas C)
> enable_language(ASM)
> set_property(SOURCE cas32.s PROPERTY LANGUAGE ASM)
>
> add_executable(cas32test cas32test.c cas32.s)
> -------
>
> That should be it.
>
> HS
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
>   


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081023/362fee84/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081023/362fee84/attachment.pgp>


More information about the CMake mailing list