1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCommands.cxx,v $
6 Date: $Date: 2008-12-18 19:56:30 $
7 Version: $Revision: 1.125 $
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 "cmElseIfCommand.cxx"
22 #include "cmEnableLanguageCommand.cxx"
23 #include "cmEndWhileCommand.cxx"
24 #include "cmExportCommand.cxx"
25 #include "cmExportLibraryDependencies.cxx"
26 #include "cmFLTKWrapUICommand.cxx"
27 #include "cmIncludeExternalMSProjectCommand.cxx"
28 #include "cmInstallProgramsCommand.cxx"
29 #include "cmLinkLibrariesCommand.cxx"
30 #include "cmLoadCacheCommand.cxx"
31 #include "cmOutputRequiredFilesCommand.cxx"
32 #include "cmQTWrapCPPCommand.cxx"
33 #include "cmQTWrapUICommand.cxx"
34 #include "cmRemoveCommand.cxx"
35 #include "cmRemoveDefinitionsCommand.cxx"
36 #include "cmSourceGroupCommand.cxx"
37 #include "cmSubdirDependsCommand.cxx"
38 #include "cmUseMangledMesaCommand.cxx"
39 #include "cmUtilitySourceCommand.cxx"
40 #include "cmVariableRequiresCommand.cxx"
41 #include "cmVariableWatchCommand.cxx"
43 #include "cmWhileCommand.cxx"
44 #include "cmWriteFileCommand.cxx"
46 // This one must be last because it includes windows.h and
47 // windows.h #defines GetCurrentDirectory which is a member
49 #include "cmLoadCommandCommand.cxx"
52 void GetPredefinedCommands(std::list
<cmCommand
*>&
53 #if defined(CMAKE_BUILD_WITH_CMAKE)
58 #if defined(CMAKE_BUILD_WITH_CMAKE)
59 commands
.push_back(new cmAuxSourceDirectoryCommand
);
60 commands
.push_back(new cmBuildNameCommand
);
61 commands
.push_back(new cmElseIfCommand
);
62 commands
.push_back(new cmEnableLanguageCommand
);
63 commands
.push_back(new cmEndWhileCommand
);
64 commands
.push_back(new cmExportCommand
);
65 commands
.push_back(new cmExportLibraryDependenciesCommand
);
66 commands
.push_back(new cmFLTKWrapUICommand
);
67 commands
.push_back(new cmIncludeExternalMSProjectCommand
);
68 commands
.push_back(new cmInstallProgramsCommand
);
69 commands
.push_back(new cmLinkLibrariesCommand
);
70 commands
.push_back(new cmLoadCacheCommand
);
71 commands
.push_back(new cmLoadCommandCommand
);
72 commands
.push_back(new cmOutputRequiredFilesCommand
);
73 commands
.push_back(new cmQTWrapCPPCommand
);
74 commands
.push_back(new cmQTWrapUICommand
);
75 commands
.push_back(new cmRemoveCommand
);
76 commands
.push_back(new cmRemoveDefinitionsCommand
);
77 commands
.push_back(new cmSourceGroupCommand
);
78 commands
.push_back(new cmSubdirDependsCommand
);
79 commands
.push_back(new cmUseMangledMesaCommand
);
80 commands
.push_back(new cmUtilitySourceCommand
);
81 commands
.push_back(new cmVariableRequiresCommand
);
82 commands
.push_back(new cmVariableWatchCommand
);
83 commands
.push_back(new cmWhileCommand
);
84 commands
.push_back(new cmWriteFileCommand
);