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 _______________________________________________ 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
