[CMake] Assembler files
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Jun 5 10:23:37 EDT 2006
> -------- Original-Nachricht --------
> Datum: Wed, 31 May 2006 18:04:27 -0400
> Von: Brad King <brad.king at kitware.com>
> An: James Mansion <james at wgold.demon.co.uk>
> Betreff: Re: [CMake] Assembler files
>
> James Mansion wrote:
> > I'd like to create a library from a mix of
> > assembler and C files.
> >
> > I'm reading the book to try to determine how
> > to achieve this. There seems to be perhaps two
> > possible approaches.
> >
> > (Initially this is for Win32, and I have files for NASM
> > and MASM with extensions .nasm and .masm)
> >
> > 1) define new languages for NASM and MASM.
> >
> > The example in the book (Fortran) suggests that I then need to
> > enable the language in the PROJECT declaration, though the
> > section on PROJECT suggests that all languages are enabled
> > by default. (?) Presumably I'm safe if I use ENABLE_LANGUAGE?
> >
> > Then I would just use ADD_LIBRARY (foo a.c b.nasm c.masm).
> >
> > Is that right?
>
> This is mostly right, but currently there is no NASM or MASM language.
> You have to look at all the *Fortran*.cmake files in the Modules
> directory. Create similar ones for NASM and MASM in some directory in
> your project, say myproj/CMake. Then in myproj/CMakeLists.txt do
Didn't somebody post cmake files which implement support for assembler not too long ago ?
They must be somewhere in the mailing list archive. Must have been this year I think.
Bye
Alex
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
More information about the CMake
mailing list