1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
8 This software is distributed WITHOUT ANY WARRANTY; without even the
9 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 See the License for more information.
11 ============================================================================*/
12 #include "cmCommands.h"
13 #if defined(CMAKE_BUILD_WITH_CMAKE)
14 #include "cmAuxSourceDirectoryCommand.cxx"
15 #include "cmBuildNameCommand.cxx"
16 #include "cmElseIfCommand.cxx"
17 #include "cmExportCommand.cxx"
18 #include "cmExportLibraryDependencies.cxx"
19 #include "cmFLTKWrapUICommand.cxx"
20 #include "cmIncludeExternalMSProjectCommand.cxx"
21 #include "cmInstallProgramsCommand.cxx"
22 #include "cmLinkLibrariesCommand.cxx"
23 #include "cmLoadCacheCommand.cxx"
24 #include "cmOutputRequiredFilesCommand.cxx"
25 #include "cmQTWrapCPPCommand.cxx"
26 #include "cmQTWrapUICommand.cxx"
27 #include "cmRemoveCommand.cxx"
28 #include "cmRemoveDefinitionsCommand.cxx"
29 #include "cmSourceGroupCommand.cxx"
30 #include "cmSubdirDependsCommand.cxx"
31 #include "cmUseMangledMesaCommand.cxx"
32 #include "cmUtilitySourceCommand.cxx"
33 #include "cmVariableRequiresCommand.cxx"
34 #include "cmVariableWatchCommand.cxx"
36 #include "cmWriteFileCommand.cxx"
38 // This one must be last because it includes windows.h and
39 // windows.h #defines GetCurrentDirectory which is a member
41 #include "cmLoadCommandCommand.cxx"
44 void GetPredefinedCommands(std::list<cmCommand*>&
45 #if defined(CMAKE_BUILD_WITH_CMAKE)
50 #if defined(CMAKE_BUILD_WITH_CMAKE)
51 commands.push_back(new cmAuxSourceDirectoryCommand);
52 commands.push_back(new cmBuildNameCommand);
53 commands.push_back(new cmElseIfCommand);
54 commands.push_back(new cmExportCommand);
55 commands.push_back(new cmExportLibraryDependenciesCommand);
56 commands.push_back(new cmFLTKWrapUICommand);
57 commands.push_back(new cmIncludeExternalMSProjectCommand);
58 commands.push_back(new cmInstallProgramsCommand);
59 commands.push_back(new cmLinkLibrariesCommand);
60 commands.push_back(new cmLoadCacheCommand);
61 commands.push_back(new cmLoadCommandCommand);
62 commands.push_back(new cmOutputRequiredFilesCommand);
63 commands.push_back(new cmQTWrapCPPCommand);
64 commands.push_back(new cmQTWrapUICommand);
65 commands.push_back(new cmRemoveCommand);
66 commands.push_back(new cmRemoveDefinitionsCommand);
67 commands.push_back(new cmSourceGroupCommand);
68 commands.push_back(new cmSubdirDependsCommand);
69 commands.push_back(new cmUseMangledMesaCommand);
70 commands.push_back(new cmUtilitySourceCommand);
71 commands.push_back(new cmVariableRequiresCommand);
72 commands.push_back(new cmVariableWatchCommand);
73 commands.push_back(new cmWriteFileCommand);