Imported Upstream version 2.8.9
[platform/upstream/cmake.git] / Source / cmCommands.cxx
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
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"
35
36 #include "cmWriteFileCommand.cxx"
37
38 // This one must be last because it includes windows.h and
39 // windows.h #defines GetCurrentDirectory which is a member
40 // of cmMakefile
41 #include "cmLoadCommandCommand.cxx"
42 #endif
43
44 void GetPredefinedCommands(std::list<cmCommand*>&
45 #if defined(CMAKE_BUILD_WITH_CMAKE)
46   commands
47 #endif
48   )
49 {
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);
74 #endif
75 }