Imported Upstream version 2.8.11.2
[platform/upstream/cmake.git] / Source / cmBootstrapCommands.cxx
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the License for more information.
11 ============================================================================*/
12 // This file is used to compile all the commands
13 // that CMake knows about at compile time.
14 // This is sort of a boot strapping approach since you would
15 // like to have CMake to build CMake.
16 #include "cmCommands.h"
17 #include "cmAddCustomCommandCommand.cxx"
18 #include "cmAddCustomTargetCommand.cxx"
19 #include "cmAddDefinitionsCommand.cxx"
20 #include "cmAddDependenciesCommand.cxx"
21 #include "cmAddExecutableCommand.cxx"
22 #include "cmAddLibraryCommand.cxx"
23 #include "cmAddSubDirectoryCommand.cxx"
24 #include "cmAddTestCommand.cxx"
25 #include "cmBreakCommand.cxx"
26 #include "cmBuildCommand.cxx"
27 #include "cmCMakeMinimumRequired.cxx"
28 #include "cmCMakePolicyCommand.cxx"
29 #include "cmCommandArgumentsHelper.cxx"
30 #include "cmConfigureFileCommand.cxx"
31 #include "cmCoreTryCompile.cxx"
32 #include "cmCreateTestSourceList.cxx"
33 #include "cmDefinePropertyCommand.cxx"
34 #include "cmElseCommand.cxx"
35 #include "cmEnableLanguageCommand.cxx"
36 #include "cmEnableTestingCommand.cxx"
37 #include "cmEndForEachCommand.cxx"
38 #include "cmEndFunctionCommand.cxx"
39 #include "cmEndIfCommand.cxx"
40 #include "cmEndMacroCommand.cxx"
41 #include "cmEndWhileCommand.cxx"
42 #include "cmExecProgramCommand.cxx"
43 #include "cmExecuteProcessCommand.cxx"
44 #include "cmExternalMakefileProjectGenerator.cxx"
45 #include "cmFindBase.cxx"
46 #include "cmFindCommon.cxx"
47 #include "cmFileCommand.cxx"
48 #include "cmFindFileCommand.cxx"
49 #include "cmFindLibraryCommand.cxx"
50 #include "cmFindPackageCommand.cxx"
51 #include "cmFindPathCommand.cxx"
52 #include "cmFindProgramCommand.cxx"
53 #include "cmForEachCommand.cxx"
54 #include "cmFunctionCommand.cxx"
55 #include "cmGetCMakePropertyCommand.cxx"
56 #include "cmGetDirectoryPropertyCommand.cxx"
57 #include "cmGetFilenameComponentCommand.cxx"
58 #include "cmGetPropertyCommand.cxx"
59 #include "cmGetSourceFilePropertyCommand.cxx"
60 #include "cmGetTargetPropertyCommand.cxx"
61 #include "cmHexFileConverter.cxx"
62 #include "cmIfCommand.cxx"
63 #include "cmIncludeCommand.cxx"
64 #include "cmIncludeDirectoryCommand.cxx"
65 #include "cmIncludeRegularExpressionCommand.cxx"
66 #include "cmInstallFilesCommand.cxx"
67 #include "cmInstallCommandArguments.cxx"
68 #include "cmInstallCommand.cxx"
69 #include "cmInstallTargetsCommand.cxx"
70 #include "cmLinkDirectoriesCommand.cxx"
71 #include "cmListCommand.cxx"
72 #include "cmMacroCommand.cxx"
73 #include "cmMakeDirectoryCommand.cxx"
74 #include "cmMarkAsAdvancedCommand.cxx"
75 #include "cmMathCommand.cxx"
76 #include "cmMessageCommand.cxx"
77 #include "cmOptionCommand.cxx"
78 #include "cmProjectCommand.cxx"
79 #include "cmReturnCommand.cxx"
80 #include "cmSeparateArgumentsCommand.cxx"
81 #include "cmSetCommand.cxx"
82 #include "cmSetDirectoryPropertiesCommand.cxx"
83 #include "cmSetPropertyCommand.cxx"
84 #include "cmSetSourceFilesPropertiesCommand.cxx"
85 #include "cmSetTargetPropertiesCommand.cxx"
86 #include "cmSetTestsPropertiesCommand.cxx"
87 #include "cmGetTestPropertyCommand.cxx"
88 #include "cmSiteNameCommand.cxx"
89 #include "cmStringCommand.cxx"
90 #include "cmSubdirCommand.cxx"
91 #include "cmTargetLinkLibrariesCommand.cxx"
92 #include "cmTimestamp.cxx"
93 #include "cmTryCompileCommand.cxx"
94 #include "cmTryRunCommand.cxx"
95 #include "cmUnsetCommand.cxx"
96 #include "cmWhileCommand.cxx"
97
98 void GetBootstrapCommands(std::list<cmCommand*>& commands)
99 {
100   commands.push_back(new cmAddCustomCommandCommand);
101   commands.push_back(new cmAddCustomTargetCommand);
102   commands.push_back(new cmAddDefinitionsCommand);
103   commands.push_back(new cmAddDependenciesCommand);
104   commands.push_back(new cmAddExecutableCommand);
105   commands.push_back(new cmAddLibraryCommand);
106   commands.push_back(new cmAddSubDirectoryCommand);
107   commands.push_back(new cmAddTestCommand);
108   commands.push_back(new cmBreakCommand);
109   commands.push_back(new cmBuildCommand);
110   commands.push_back(new cmCMakeMinimumRequired);
111   commands.push_back(new cmCMakePolicyCommand);
112   commands.push_back(new cmConfigureFileCommand);
113   commands.push_back(new cmCreateTestSourceList);
114   commands.push_back(new cmDefinePropertyCommand);
115   commands.push_back(new cmElseCommand);
116   commands.push_back(new cmEnableLanguageCommand);
117   commands.push_back(new cmEnableTestingCommand);
118   commands.push_back(new cmEndForEachCommand);
119   commands.push_back(new cmEndFunctionCommand);
120   commands.push_back(new cmEndIfCommand);
121   commands.push_back(new cmEndMacroCommand);
122   commands.push_back(new cmEndWhileCommand);
123   commands.push_back(new cmExecProgramCommand);
124   commands.push_back(new cmExecuteProcessCommand);
125   commands.push_back(new cmFileCommand);
126   commands.push_back(new cmFindFileCommand);
127   commands.push_back(new cmFindLibraryCommand);
128   commands.push_back(new cmFindPackageCommand);
129   commands.push_back(new cmFindPathCommand);
130   commands.push_back(new cmFindProgramCommand);
131   commands.push_back(new cmForEachCommand);
132   commands.push_back(new cmFunctionCommand);
133   commands.push_back(new cmGetCMakePropertyCommand);
134   commands.push_back(new cmGetDirectoryPropertyCommand);
135   commands.push_back(new cmGetFilenameComponentCommand);
136   commands.push_back(new cmGetPropertyCommand);
137   commands.push_back(new cmGetSourceFilePropertyCommand);
138   commands.push_back(new cmGetTargetPropertyCommand);
139   commands.push_back(new cmIfCommand);
140   commands.push_back(new cmIncludeCommand);
141   commands.push_back(new cmIncludeDirectoryCommand);
142   commands.push_back(new cmIncludeRegularExpressionCommand);
143   commands.push_back(new cmInstallCommand);
144   commands.push_back(new cmInstallFilesCommand);
145   commands.push_back(new cmInstallTargetsCommand);
146   commands.push_back(new cmLinkDirectoriesCommand);
147   commands.push_back(new cmListCommand);
148   commands.push_back(new cmMacroCommand);
149   commands.push_back(new cmMakeDirectoryCommand);
150   commands.push_back(new cmMarkAsAdvancedCommand);
151   commands.push_back(new cmMathCommand);
152   commands.push_back(new cmMessageCommand);
153   commands.push_back(new cmOptionCommand);
154   commands.push_back(new cmProjectCommand);
155   commands.push_back(new cmReturnCommand);
156   commands.push_back(new cmSeparateArgumentsCommand);
157   commands.push_back(new cmSetCommand);
158   commands.push_back(new cmSetDirectoryPropertiesCommand);
159   commands.push_back(new cmSetPropertyCommand);
160   commands.push_back(new cmSetSourceFilesPropertiesCommand);
161   commands.push_back(new cmSetTargetPropertiesCommand);
162   commands.push_back(new cmGetTestPropertyCommand);
163   commands.push_back(new cmSetTestsPropertiesCommand);
164   commands.push_back(new cmSiteNameCommand);
165   commands.push_back(new cmStringCommand);
166   commands.push_back(new cmSubdirCommand);
167   commands.push_back(new cmTargetLinkLibrariesCommand);
168   commands.push_back(new cmTryCompileCommand);
169   commands.push_back(new cmTryRunCommand);
170   commands.push_back(new cmUnsetCommand);
171   commands.push_back(new cmWhileCommand);
172 }