1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCommands.cxx,v $
6 Date: $Date: 2007-12-03 18:35:33 $
7 Version: $Revision: 1.120 $
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 #include "cmCommands.h"
18 #if defined(CMAKE_BUILD_WITH_CMAKE)
19 #include "cmAuxSourceDirectoryCommand.cxx"
20 #include "cmBuildNameCommand.cxx"
21 #include "cmDefinePropertyCommand.cxx"
22 #include "cmElseIfCommand.cxx"
23 #include "cmEnableLanguageCommand.cxx"
24 #include "cmEndWhileCommand.cxx"
25 #include "cmExecuteProcessCommand.cxx"
26 #include "cmExportCommand.cxx"
27 #include "cmExportLibraryDependencies.cxx"
28 #include "cmFLTKWrapUICommand.cxx"
29 #include "cmGetDirectoryPropertyCommand.cxx"
30 #include "cmGetPropertyCommand.cxx"
31 #include "cmGetTestPropertyCommand.cxx"
32 #include "cmIncludeExternalMSProjectCommand.cxx"
33 #include "cmInstallCommand.cxx"
34 #include "cmInstallCommandArguments.cxx"
35 #include "cmInstallProgramsCommand.cxx"
36 #include "cmLinkLibrariesCommand.cxx"
37 #include "cmLoadCacheCommand.cxx"
38 #include "cmMathCommand.cxx"
39 #include "cmOutputRequiredFilesCommand.cxx"
40 #include "cmQTWrapCPPCommand.cxx"
41 #include "cmQTWrapUICommand.cxx"
42 #include "cmRemoveCommand.cxx"
43 #include "cmRemoveDefinitionsCommand.cxx"
44 #include "cmSeparateArgumentsCommand.cxx"
45 #include "cmSetDirectoryPropertiesCommand.cxx"
46 #include "cmSourceGroupCommand.cxx"
47 #include "cmSubdirDependsCommand.cxx"
48 #include "cmUseMangledMesaCommand.cxx"
49 #include "cmUtilitySourceCommand.cxx"
50 #include "cmVariableRequiresCommand.cxx"
51 #include "cmVariableWatchCommand.cxx"
53 #include "cmWhileCommand.cxx"
54 #include "cmWriteFileCommand.cxx"
56 // This one must be last because it includes windows.h and
57 // windows.h #defines GetCurrentDirectory which is a member
59 #include "cmLoadCommandCommand.cxx"
62 void GetPredefinedCommands(std::list
<cmCommand
*>&
63 #if defined(CMAKE_BUILD_WITH_CMAKE)
68 #if defined(CMAKE_BUILD_WITH_CMAKE)
69 commands
.push_back(new cmAuxSourceDirectoryCommand
);
70 commands
.push_back(new cmBuildNameCommand
);
71 commands
.push_back(new cmDefinePropertyCommand
);
72 commands
.push_back(new cmElseIfCommand
);
73 commands
.push_back(new cmEnableLanguageCommand
);
74 commands
.push_back(new cmEndWhileCommand
);
75 commands
.push_back(new cmExecuteProcessCommand
);
76 commands
.push_back(new cmExportCommand
);
77 commands
.push_back(new cmExportLibraryDependenciesCommand
);
78 commands
.push_back(new cmFLTKWrapUICommand
);
79 commands
.push_back(new cmGetDirectoryPropertyCommand
);
80 commands
.push_back(new cmGetPropertyCommand
);
81 commands
.push_back(new cmGetTestPropertyCommand
);
82 commands
.push_back(new cmIncludeExternalMSProjectCommand
);
83 commands
.push_back(new cmInstallCommand
);
84 commands
.push_back(new cmInstallProgramsCommand
);
85 commands
.push_back(new cmLinkLibrariesCommand
);
86 commands
.push_back(new cmLoadCacheCommand
);
87 commands
.push_back(new cmLoadCommandCommand
);
88 commands
.push_back(new cmMathCommand
);
89 commands
.push_back(new cmOutputRequiredFilesCommand
);
90 commands
.push_back(new cmQTWrapCPPCommand
);
91 commands
.push_back(new cmQTWrapUICommand
);
92 commands
.push_back(new cmRemoveCommand
);
93 commands
.push_back(new cmRemoveDefinitionsCommand
);
94 commands
.push_back(new cmSeparateArgumentsCommand
);
95 commands
.push_back(new cmSetDirectoryPropertiesCommand
);
96 commands
.push_back(new cmSourceGroupCommand
);
97 commands
.push_back(new cmSubdirDependsCommand
);
98 commands
.push_back(new cmUseMangledMesaCommand
);
99 commands
.push_back(new cmUtilitySourceCommand
);
100 commands
.push_back(new cmVariableRequiresCommand
);
101 commands
.push_back(new cmVariableWatchCommand
);
102 commands
.push_back(new cmWhileCommand
);
103 commands
.push_back(new cmWriteFileCommand
);