[CMake] static library from several subdirectories
Tyler Roscoe
tyler at cryptio.net
Fri Mar 12 11:54:45 EST 2010
On Fri, Mar 12, 2010 at 05:29:00PM +0100, Verweij, Arjen wrote:
> For a legacy FORTRAN project, I'm looking for a cmake-way to create a
> static library from several subdirectories. The current solution is
> using a custom POST_BUILD step with ar and ranlib, but the resulting
> archive is not known to cmake and can't be used to link to the main.
>
> As an alternative we've tried to propagate the list of archives using
> PARENT_SCOPE, but this seems like a hack as well. Is there a clean way
> to go about it?
Search the archives. There's a thread about a very similar (identical?)
topic going on *right now* with subject "Static Modules".
tyler
More information about the CMake
mailing list