BUG: fix some bad changes in progress calc
[cmake.git] / Source / cmSubdirCommand.h
blobd78eed7d9b5b02ff88441fb357d84688eed46ea0
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmSubdirCommand.h,v $
5 Language: C++
6 Date: $Date: 2008-01-23 15:27:59 $
7 Version: $Revision: 1.21 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html 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 cmSubdirCommand_h
18 #define cmSubdirCommand_h
20 #include "cmCommand.h"
22 /** \class cmSubdirCommand
23 * \brief Specify a list of subdirectories to build.
25 * cmSubdirCommand specifies a list of subdirectories to process
26 * by CMake. For each subdirectory listed, CMake will descend
27 * into that subdirectory and process any CMakeLists.txt found.
29 class cmSubdirCommand : public cmCommand
31 public:
32 /**
33 * This is a virtual constructor for the command.
35 virtual cmCommand* Clone()
37 return new cmSubdirCommand;
40 /**
41 * This is called when the command is first encountered in
42 * the CMakeLists.txt file.
44 virtual bool InitialPass(std::vector<std::string> const& args,
45 cmExecutionStatus &status);
47 /**
48 * The name of the command as specified in CMakeList.txt.
50 virtual const char* GetName() { return "subdirs";}
52 /**
53 * Succinct documentation.
55 virtual const char* GetTerseDocumentation()
57 return "Deprecated. Use the add_subdirectory() command instead.";
60 /**
61 * More documentation.
63 virtual const char* GetFullDocumentation()
65 return
66 "Add a list of subdirectories to the build.\n"
67 " subdirs(dir1 dir2 ..."
68 "[EXCLUDE_FROM_ALL exclude_dir1 exclude_dir2 ...] [PREORDER] )\n"
69 "Add a list of subdirectories to the build. The add_subdirectory "
70 "command should be used instead of subdirs although subdirs will "
71 "still work. "
72 "This will cause any CMakeLists.txt files in the sub directories "
73 "to be processed by CMake. Any directories after the PREORDER flag "
74 "are traversed first by makefile builds, the PREORDER flag has no "
75 "effect on IDE projects. "
76 " Any directories after the EXCLUDE_FROM_ALL marker "
77 "will not be included in the top level makefile or project file. "
78 "This is useful for having CMake create makefiles or projects for "
79 "a set of examples in a project. You would want CMake to "
80 "generate makefiles or project files for all the examples at "
81 "the same time, but you would not want them to show up in the "
82 "top level project or be built each time make is run from the top.";
85 /** This command is kept for compatibility with older CMake versions. */
86 virtual bool IsDiscouraged()
88 return true;
91 cmTypeMacro(cmSubdirCommand, cmCommand);
96 #endif