<div class="gmail_quote">On Mon, Jan 24, 2011 at 2:33 PM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 24.01.11 09:37:01, Helseth, Nicholas H wrote:<br>
> I'm trying to build an object file using CMake, but I can't seem to<br>
> get CMake to build something other than a complete executable. I'm<br>
> basically looking for the result of the following compilation (the<br>
> result will be loaded on a VxWorks target and linked then-it needs to<br>
> be a *.o because of the way our build system works):<br>
<br>
</div>You can't do this with cmake.<br>
<br></blockquote><div><br>But you can do anything you want with custom commands in CMake. It just might not be very easy or very cross-platform.<br><br>Why do you need the *.o files individually?<br><br>Could you instead build a static library with CMake, and then use a custom command to glob for the *.o files produced?<br>
<br></div></div>