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