On Wed, Mar 10, 2010 at 1:47 PM, Alexander Neundorf <a.neundorf-w...@gmx.net
> wrote:

> On Tuesday 09 March 2010, Markus Raab wrote:
> > Hi list!
> >
> > I am currently trying to migrate a autotools project to cmake.
> >
> > The project used modules intensively. It was possible to compile all
> these
> > modules also statically and link them together to a single static
> library.
> > Is this supported out of the box by cmake? How?
>
> AFAIK no.
> In KDE we also had these libtool convenience libraries.
> We don't have that anymore, we just compile all the files directly into one
> library.
> We didn't have any issues with this since then.
>
> (it may be possible to hack something together with custom commands to
> extract
> the object files from the ar archives and put them together into a
> resulting
> ar file but I wouldn't recommend this)
>
> Alex
>

A bit less work: if you're building all the modules in CMake too, you could
loop through them extracting their source lists then adding those to a new
target: probably could be generalizable to a custom command in a cmake
module.

Ryan
-- 
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University

rpav...@iastate.edu
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to