1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmAuxSourceDirectoryCommand.h,v $
6 Date: $Date: 2002-01-21 20:30:18 $
7 Version: $Revision: 1.7 $
9 Copyright (c) 2002 Insight Consortium. All rights reserved.
10 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmAuxSourceDirectoryCommand_h
18 #define cmAuxSourceDirectoryCommand_h
20 #include "cmStandardIncludes.h"
21 #include "cmCommand.h"
23 /** \class cmAuxSourceDirectoryCommand
24 * \brief Specify auxiliary source code directories.
26 * cmAuxSourceDirectoryCommand specifies source code directories
27 * that must be built as part of this build process. This directories
28 * are not recursively processed like the SUBDIR command (cmSubdirCommand).
29 * A side effect of this command is to create a subdirectory in the build
30 * directory structure.
32 class cmAuxSourceDirectoryCommand
: public cmCommand
36 * This is a virtual constructor for the command.
38 virtual cmCommand
* Clone()
40 return new cmAuxSourceDirectoryCommand
;
44 * This is called when the command is first encountered in
45 * the CMakeLists.txt file.
47 virtual bool InitialPass(std::vector
<std::string
> const& args
);
50 * The name of the command as specified in CMakeList.txt.
52 virtual const char* GetName() { return "AUX_SOURCE_DIRECTORY";}
55 * Succinct documentation.
57 virtual const char* GetTerseDocumentation()
59 return "Add all the source files found in the specified\n"
60 "directory to the build as source list NAME.";
66 virtual const char* GetFullDocumentation()
69 "AUX_SOURCE_DIRECTORY(dir srcListName)";
72 cmTypeMacro(cmAuxSourceDirectoryCommand
, cmCommand
);