[CMake] ADD_SUBDIRECTORY
    Brandon Van Every 
    bvanevery at gmail.com
       
    Thu Dec 20 16:13:41 EST 2007
    
    
  
On Dec 20, 2007 11:47 AM, George Neill <georgen at neillnet.com> wrote:
>
> I guess by issuing the ADD_SUBDIRECTORY() ( along with a PROJECT() ) I
> am implicitly saying there's going to be a collection of stuff built
> under this project.  It makes sense (to me) CMake could automatically
> generate a psuedo-target (synonomous with a "make all" for a
> subproject I suppose).
Having a subdirectory doesn't imply you want that stuff built as part
of "make all."  In fact there are explicit options to avoid this.  A
typical example is you've got some source code for sample projects,
but you don't want the sample projects built by default.  Test cases
are another example.
Cheers,
Brandon Van Every
    
    
More information about the CMake
mailing list