[CMake] Different INCLUDE_DIRECTORIES for each library

Brandon Van Every bvanevery at gmail.com
Fri Jul 6 10:15:21 EDT 2007


On 7/6/07, Paul Richards <paul.richards at gmail.com> wrote:
> On 06/07/07, Alexander Neundorf <a.neundorf-work at gmx.net> wrote:

> >
> > The include directories you define using INCLUDE_DIRECTORIES() are used for
> > all targets defined in this CMakeLists.txt and they are also "inherited" to
> > all CMakeLists.txt in subdirectories added using SUBDIRS() or
> > ADD_SUBDIRECTORY(). In these subdirectories you can add more include
> > directories if you want to.
> >
>
> So for this to work I am forced to split my CMakeLists.txt file into
> separate parts spread across different directories.  Correct?

Yup.

Cheers,
Brandon Van Every


More information about the CMake mailing list