[CMake] Compile new language file to object file

Alexander Neundorf a.neundorf-work at gmx.net
Sun May 17 16:45:11 EDT 2009


On Sunday 17 May 2009, James Bigler wrote:
> If I have a compiler that can generate object files for later linkage, is
> the best way to add support for this in CMake to use the Assembler feature?

If it is assembler, yes :-)
Otherwise, I'd say no.

What language is it ?

Alex


> http://www.cmake.org/Wiki/CMake/Assembler
>
> Or is it better to simply create custom commands to build the object files,
> set the EXTERNAL_OBJECT and GENERATED flags to true and add it to the
> source list for the executable or library?

You can do that too.

Alex


More information about the CMake mailing list