[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: Re: [CMake] faking convenience libraries
From: Pedro Lopez-Cabanillas <pedro.lopez.cabanillas () gmail ! com>
Date: 2007-01-19 20:51:50
Message-ID: 200701192151.50648.pedro.lopez.cabanillas () gmail ! com
[Download RAW message or body]
On Friday, 19 January 2007 20:07, kitts wrote:
> On Friday 19 January 2007 23:57 IST, Brandon J. Van Every wrote:
> > We need to compile the same underlying code 7 times for 7 different
> > libraries. 3 of the resulting libs are dynamic and 4 are static. We
> > would use "convenience libraries" to do this, if it were portable and
> > available in CMake. We understand that "ar" in particular can't include
> > static libraries in other static libraries. How can we reduce the
> > number of times we have to compile this code, without getting into a lot
> > of hairy details?
>
> I would be interested in knowing this. I am faced with the a similar
> problem. I have to build several libraries each with their own source code
> but depending on some common code. I could build a library out of the
> common code but those API's not to be exposed.
>
> I tried adding the common library as a dependency for the target lib but
> that dint build them together either. The current target built itself like
> it had no dependency on the common library.
Rosegarden uses a static library named RosegardenCommon, that is linked to the
two executables rosegarden and rosegardensequencer.
http://rosegarden.svn.sourceforge.net/viewvc/*checkout*/rosegarden/trunk/rosegarden/src/CMakeLists.txt
Hope this helps.
Regards,
Pedro
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic