[Cmake] Collecting files from subdirs
Nils H. Busch
nilsb at cns.mpg.de
Mon Mar 31 12:39:50 EST 2003
"William A. Hoffman" wrote:
> Each subdir is treated as its own makefile and scope. Only
> cached variables are passed from one sub dir to another.
> You have some choices:
>
> 1. use the INCLUDE command instead of the SUBDIRS command to include
> the lists file in the subdir.
> 2. List out the sources in the parent directory explicitly
> SET(SRCS subdir/file1.cxx subdir/file2.cxx ....)
> 3. Use AUX_SOURCE_DIRECTORY, but that is really just a variation on 2, its main
> use is really having cmake collect all the source names instead of listing
> them one
> by one.
>
> -Bill
>
Declaring them as cached vars did not seem to work for me, but approach 1 does.
There is just this minor glib that somehow under my current dir a whole new subdir
tree consisting of the complete current path is created recursively ;-)
I thought an INSTALL_FILES is the culprit, but despite commenting it out, there it
is again.
Well, I'll do some debugging...
Thanks a lot so far.
--
Nils H. Busch
Max-Planck-Institute of Cognitive Neuroscience
phone: ++49 (341) 9940-035 fax: ++49 (341) 9940-204
e-mail: nilsb at cns.mpg.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20030331/4d9b8648/attachment.html>
More information about the CMake
mailing list