[CMake] Targets organisation of complex project

Alexander Neundorf a.neundorf-work at gmx.net
Tue Oct 13 15:59:59 EDT 2009


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 ?

> using PARENT_SCOPE thing,

If you do that, remember to use the full paths, otherwise the relative paths 
will be wrong.

> get_directory_property etc.
>
> Would that be correct?

I think so.

Alex


More information about the CMake mailing list