[CMake] add_subdirectory and build directory
Michael Wild
themiwi at gmail.com
Sat Sep 12 02:45:09 EDT 2009
On 11. Sep, 2009, at 16:45, Bill Hoffman wrote:
>
>> That's NOT what add_subdirectory is made for. It is intended for
>> adding a sub-directory in the source tree. So, if your directory
>> structure looks like this (i.e. B is a sub-project of A)
>> A/CMakeLists.txt
>> A/B/CMakeLists.txt
>> things are simple:
>> A/CMakeLists.txt:
>
> Actually add_subdirectory does support the notion of out-of-source
> source. So, a source directory in does not have to be a direct sub-
> directory on disk.
>
> -Bill
True, but then you wouldn't point it at a binary directory. AFAIK, if
you point project A at an out-of-source source, say project B, that
project B will be built completely within the binary tree of A.
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090912/7331b0fe/attachment.pgp>
More information about the CMake
mailing list