On 16. Mar, 2010, at 17:42 , Markus Raab wrote: > Verweij, Arjen wrote: > >> I'm looking for a cmake-way to create a static library from several >> subdirectories. > > I have exactly the same problem, please share if you get a good solution. > > What about collecting all files in a cache variable? Then you could add > files per directory, but with a global scope. Could that work? > > I would really like to avoid to have them all listed in a file. cmake was > the tool of choice, exactly because I want to get rid of a single > configure.ac. This is important because folders might be excluded depending > on options or available libraries. > > thank you > Markus > > -- > http://www.markus-raab.org | Die Geschichte lehrt dauernd, aber sie > -o) | findet keine Schüler. -- Dr. Ingeborg > Kernel 2.6.24-1-a /\ | Bachmann > on a x86_64 _\_v |
Don't use a cache variable (after all, that's not something you want to persist...), but a global property instead as I showed in one of the past replies to this thread. Michael _______________________________________________ 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