1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmBootstrapCommands.cxx,v $
6 Date: $Date: 2008-08-25 14:31:28 $
7 Version: $Revision: 1.29 $
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 "cmSetPropertyCommand.cxx"
86 #include "cmSetSourceFilesPropertiesCommand.cxx"
87 #include "cmSetTargetPropertiesCommand.cxx"
88 #include "cmSetTestsPropertiesCommand.cxx"
89 #include "cmGetTestPropertyCommand.cxx"
90 #include "cmSiteNameCommand.cxx"
91 #include "cmStringCommand.cxx"
92 #include "cmSubdirCommand.cxx"
93 #include "cmTargetLinkLibrariesCommand.cxx"
94 #include "cmTryCompileCommand.cxx"
95 #include "cmTryRunCommand.cxx"
96 #include "cmUnsetCommand.cxx"
98 void GetBootstrapCommands(std::list
<cmCommand
*>& commands
)
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 cmEnableTestingCommand
);
117 commands
.push_back(new cmEndForEachCommand
);
118 commands
.push_back(new cmEndFunctionCommand
);
119 commands
.push_back(new cmEndIfCommand
);
120 commands
.push_back(new cmEndMacroCommand
);
121 commands
.push_back(new cmExecProgramCommand
);
122 commands
.push_back(new cmExecuteProcessCommand
);
123 commands
.push_back(new cmFileCommand
);
124 commands
.push_back(new cmFindFileCommand
);
125 commands
.push_back(new cmFindLibraryCommand
);
126 commands
.push_back(new cmFindPackageCommand
);
127 commands
.push_back(new cmFindPathCommand
);
128 commands
.push_back(new cmFindProgramCommand
);
129 commands
.push_back(new cmForEachCommand
);
130 commands
.push_back(new cmFunctionCommand
);
131 commands
.push_back(new cmGetCMakePropertyCommand
);
132 commands
.push_back(new cmGetDirectoryPropertyCommand
);
133 commands
.push_back(new cmGetFilenameComponentCommand
);
134 commands
.push_back(new cmGetPropertyCommand
);
135 commands
.push_back(new cmGetSourceFilePropertyCommand
);
136 commands
.push_back(new cmGetTargetPropertyCommand
);
137 commands
.push_back(new cmIfCommand
);
138 commands
.push_back(new cmIncludeCommand
);
139 commands
.push_back(new cmIncludeDirectoryCommand
);
140 commands
.push_back(new cmIncludeRegularExpressionCommand
);
141 commands
.push_back(new cmInstallCommand
);
142 commands
.push_back(new cmInstallFilesCommand
);
143 commands
.push_back(new cmInstallTargetsCommand
);
144 commands
.push_back(new cmLinkDirectoriesCommand
);
145 commands
.push_back(new cmListCommand
);
146 commands
.push_back(new cmMacroCommand
);
147 commands
.push_back(new cmMakeDirectoryCommand
);
148 commands
.push_back(new cmMarkAsAdvancedCommand
);
149 commands
.push_back(new cmMathCommand
);
150 commands
.push_back(new cmMessageCommand
);
151 commands
.push_back(new cmOptionCommand
);
152 commands
.push_back(new cmProjectCommand
);
153 commands
.push_back(new cmReturnCommand
);
154 commands
.push_back(new cmSeparateArgumentsCommand
);
155 commands
.push_back(new cmSetCommand
);
156 commands
.push_back(new cmSetPropertyCommand
);
157 commands
.push_back(new cmSetSourceFilesPropertiesCommand
);
158 commands
.push_back(new cmSetTargetPropertiesCommand
);
159 commands
.push_back(new cmGetTestPropertyCommand
);
160 commands
.push_back(new cmSetTestsPropertiesCommand
);
161 commands
.push_back(new cmSiteNameCommand
);
162 commands
.push_back(new cmStringCommand
);
163 commands
.push_back(new cmSubdirCommand
);
164 commands
.push_back(new cmTargetLinkLibrariesCommand
);
165 commands
.push_back(new cmTryCompileCommand
);
166 commands
.push_back(new cmTryRunCommand
);
167 commands
.push_back(new cmUnsetCommand
);