1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmBootstrapCommands.cxx,v $
6 Date: $Date: 2008-12-18 19:56:30 $
7 Version: $Revision: 1.30 $
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 // This file is used to compile all the commands
18 // that CMake knows about at compile time.
19 // This is sort of a boot strapping approach since you would
20 // like to have CMake to build CMake.
21 #include "cmCommands.h"
22 #include "cmAddCustomCommandCommand.cxx"
23 #include "cmAddCustomTargetCommand.cxx"
24 #include "cmAddDefinitionsCommand.cxx"
25 #include "cmAddDependenciesCommand.cxx"
26 #include "cmAddExecutableCommand.cxx"
27 #include "cmAddLibraryCommand.cxx"
28 #include "cmAddSubDirectoryCommand.cxx"
29 #include "cmAddTestCommand.cxx"
30 #include "cmBreakCommand.cxx"
31 #include "cmBuildCommand.cxx"
32 #include "cmCMakeMinimumRequired.cxx"
33 #include "cmCMakePolicyCommand.cxx"
34 #include "cmCommandArgumentsHelper.cxx"
35 #include "cmConfigureFileCommand.cxx"
36 #include "cmCoreTryCompile.cxx"
37 #include "cmCreateTestSourceList.cxx"
38 #include "cmDefinePropertyCommand.cxx"
39 #include "cmElseCommand.cxx"
40 #include "cmEnableTestingCommand.cxx"
41 #include "cmEndForEachCommand.cxx"
42 #include "cmEndFunctionCommand.cxx"
43 #include "cmEndIfCommand.cxx"
44 #include "cmEndMacroCommand.cxx"
45 #include "cmExecProgramCommand.cxx"
46 #include "cmExecuteProcessCommand.cxx"
47 #include "cmExternalMakefileProjectGenerator.cxx"
48 #include "cmFindBase.cxx"
49 #include "cmFindCommon.cxx"
50 #include "cmFileCommand.cxx"
51 #include "cmFindFileCommand.cxx"
52 #include "cmFindLibraryCommand.cxx"
53 #include "cmFindPackageCommand.cxx"
54 #include "cmFindPathCommand.cxx"
55 #include "cmFindProgramCommand.cxx"
56 #include "cmForEachCommand.cxx"
57 #include "cmFunctionCommand.cxx"
58 #include "cmGetCMakePropertyCommand.cxx"
59 #include "cmGetDirectoryPropertyCommand.cxx"
60 #include "cmGetFilenameComponentCommand.cxx"
61 #include "cmGetPropertyCommand.cxx"
62 #include "cmGetSourceFilePropertyCommand.cxx"
63 #include "cmGetTargetPropertyCommand.cxx"
64 #include "cmHexFileConverter.cxx"
65 #include "cmIfCommand.cxx"
66 #include "cmIncludeCommand.cxx"
67 #include "cmIncludeDirectoryCommand.cxx"
68 #include "cmIncludeRegularExpressionCommand.cxx"
69 #include "cmInstallFilesCommand.cxx"
70 #include "cmInstallCommandArguments.cxx"
71 #include "cmInstallCommand.cxx"
72 #include "cmInstallTargetsCommand.cxx"
73 #include "cmLinkDirectoriesCommand.cxx"
74 #include "cmListCommand.cxx"
75 #include "cmMacroCommand.cxx"
76 #include "cmMakeDirectoryCommand.cxx"
77 #include "cmMarkAsAdvancedCommand.cxx"
78 #include "cmMathCommand.cxx"
79 #include "cmMessageCommand.cxx"
80 #include "cmOptionCommand.cxx"
81 #include "cmProjectCommand.cxx"
82 #include "cmReturnCommand.cxx"
83 #include "cmSeparateArgumentsCommand.cxx"
84 #include "cmSetCommand.cxx"
85 #include "cmSetDirectoryPropertiesCommand.cxx"
86 #include "cmSetPropertyCommand.cxx"
87 #include "cmSetSourceFilesPropertiesCommand.cxx"
88 #include "cmSetTargetPropertiesCommand.cxx"
89 #include "cmSetTestsPropertiesCommand.cxx"
90 #include "cmGetTestPropertyCommand.cxx"
91 #include "cmSiteNameCommand.cxx"
92 #include "cmStringCommand.cxx"
93 #include "cmSubdirCommand.cxx"
94 #include "cmTargetLinkLibrariesCommand.cxx"
95 #include "cmTryCompileCommand.cxx"
96 #include "cmTryRunCommand.cxx"
97 #include "cmUnsetCommand.cxx"
99 void GetBootstrapCommands(std::list
<cmCommand
*>& commands
)
101 commands
.push_back(new cmAddCustomCommandCommand
);
102 commands
.push_back(new cmAddCustomTargetCommand
);
103 commands
.push_back(new cmAddDefinitionsCommand
);
104 commands
.push_back(new cmAddDependenciesCommand
);
105 commands
.push_back(new cmAddExecutableCommand
);
106 commands
.push_back(new cmAddLibraryCommand
);
107 commands
.push_back(new cmAddSubDirectoryCommand
);
108 commands
.push_back(new cmAddTestCommand
);
109 commands
.push_back(new cmBreakCommand
);
110 commands
.push_back(new cmBuildCommand
);
111 commands
.push_back(new cmCMakeMinimumRequired
);
112 commands
.push_back(new cmCMakePolicyCommand
);
113 commands
.push_back(new cmConfigureFileCommand
);
114 commands
.push_back(new cmCreateTestSourceList
);
115 commands
.push_back(new cmDefinePropertyCommand
);
116 commands
.push_back(new cmElseCommand
);
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 cmExecProgramCommand
);
123 commands
.push_back(new cmExecuteProcessCommand
);
124 commands
.push_back(new cmFileCommand
);
125 commands
.push_back(new cmFindFileCommand
);
126 commands
.push_back(new cmFindLibraryCommand
);
127 commands
.push_back(new cmFindPackageCommand
);
128 commands
.push_back(new cmFindPathCommand
);
129 commands
.push_back(new cmFindProgramCommand
);
130 commands
.push_back(new cmForEachCommand
);
131 commands
.push_back(new cmFunctionCommand
);
132 commands
.push_back(new cmGetCMakePropertyCommand
);
133 commands
.push_back(new cmGetDirectoryPropertyCommand
);
134 commands
.push_back(new cmGetFilenameComponentCommand
);
135 commands
.push_back(new cmGetPropertyCommand
);
136 commands
.push_back(new cmGetSourceFilePropertyCommand
);
137 commands
.push_back(new cmGetTargetPropertyCommand
);
138 commands
.push_back(new cmIfCommand
);
139 commands
.push_back(new cmIncludeCommand
);
140 commands
.push_back(new cmIncludeDirectoryCommand
);
141 commands
.push_back(new cmIncludeRegularExpressionCommand
);
142 commands
.push_back(new cmInstallCommand
);
143 commands
.push_back(new cmInstallFilesCommand
);
144 commands
.push_back(new cmInstallTargetsCommand
);
145 commands
.push_back(new cmLinkDirectoriesCommand
);
146 commands
.push_back(new cmListCommand
);
147 commands
.push_back(new cmMacroCommand
);
148 commands
.push_back(new cmMakeDirectoryCommand
);
149 commands
.push_back(new cmMarkAsAdvancedCommand
);
150 commands
.push_back(new cmMathCommand
);
151 commands
.push_back(new cmMessageCommand
);
152 commands
.push_back(new cmOptionCommand
);
153 commands
.push_back(new cmProjectCommand
);
154 commands
.push_back(new cmReturnCommand
);
155 commands
.push_back(new cmSeparateArgumentsCommand
);
156 commands
.push_back(new cmSetCommand
);
157 commands
.push_back(new cmSetDirectoryPropertiesCommand
);
158 commands
.push_back(new cmSetPropertyCommand
);
159 commands
.push_back(new cmSetSourceFilesPropertiesCommand
);
160 commands
.push_back(new cmSetTargetPropertiesCommand
);
161 commands
.push_back(new cmGetTestPropertyCommand
);
162 commands
.push_back(new cmSetTestsPropertiesCommand
);
163 commands
.push_back(new cmSiteNameCommand
);
164 commands
.push_back(new cmStringCommand
);
165 commands
.push_back(new cmSubdirCommand
);
166 commands
.push_back(new cmTargetLinkLibrariesCommand
);
167 commands
.push_back(new cmTryCompileCommand
);
168 commands
.push_back(new cmTryRunCommand
);
169 commands
.push_back(new cmUnsetCommand
);