[CMake] static library from several subdirectories
Alexander Neundorf
a.neundorf-work at gmx.net
Fri Mar 12 12:16:44 EST 2010
On Friday 12 March 2010, Verweij, Arjen wrote:
> Hi,
>
> 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.
You can just list all source files in the top level CMakeLists.txt, no matter
whether they are in a subdirectory or in the same directory.
Alex
More information about the CMake
mailing list