Alexander Neundorf wrote: > On Tuesday 13 October 2009, Mateusz Loskot wrote: >> Mateusz Loskot wrote: >>> What would be best way to configure such complex source tree that >>> outputs single library? >> I'm trying to make my decision, so I would like to summary >> our brainstorm. >> >> AFAIU, linking the static libraries to single shared library >> is still not recommended. >> >> The recommended option is to pass all source files at >> once to ADD_LIBRARY call. >> >> Next, there is a couple of ways how to achieve that like >> appending names to variables (brute force), > > What is brute force about that ?
Actually, nothing. I just wanted to describe the process of collecting sources with plain SET() command while walking down-up the tree of subdirectories, one by one, appending, etc. >> using PARENT_SCOPE thing, > > If you do that, remember to use the full paths, otherwise the relative paths > will be wrong. Right. >> get_directory_property etc. >> >> Would that be correct? > > I think so. Great. Things are getting clear :-) Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org _______________________________________________ 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