[CMake] Targets organisation of complex project
Mateusz Loskot
mateusz at loskot.net
Tue Oct 13 16:06:49 EDT 2009
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
More information about the CMake
mailing list