[CMake] Re: Out of source build and KDevelop
Alexander Neundorf
a.neundorf-work at gmx.net
Wed Oct 20 08:49:32 EDT 2004
> GetHomeDirectory will return the very top level directory.
> However, you should not need it for each project. The
> map < name, vector<local gen> > will have the name
> of each project and a vector of local generators. The first
> local gen in each vector will be the one for the cmakelist
> file that contained the PROJECT(name) command that matches the
> name in the map. So, to get the toplevel source directory for
> a project, you can get the binary and source dir from the cmMakefile
> of the local generator. I am assuming that each sub project does
> not need to know the top of the entire project, just the top for
> itself.
>
> -Bill
In my case I need the very top level directory in every sub project, since
I'm
using files which are located above the (not yet implemented) project
directory.
So I'd like to replace the GetProperty("PROJECT_SOURCE_DIR") with
GetHomeDirectory().
Bye
Alex
--
GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail
+++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++
More information about the CMake
mailing list