[CMake] static library from several subdirectories
Michael Wild
themiwi at gmail.com
Tue Mar 16 15:08:54 EDT 2010
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
More information about the CMake
mailing list