[CMake] Compiling assembler files with C code

Hendrik Sattler post at hendrik-sattler.de
Wed Oct 22 04:02:36 EDT 2008


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



More information about the CMake mailing list