STYLE: Fix typo in GetFilenameLastExtension docs
[cmake.git] / Source / cmCommands.cxx
blob533fa6bf0bf796534e0fffbef276330ed622dd3f
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCommands.cxx,v $
5 Language: C++
6 Date: $Date: 2008-07-07 19:07:54 $
7 Version: $Revision: 1.124 $
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 "cmSetDirectoryPropertiesCommand.cxx"
37 #include "cmSourceGroupCommand.cxx"
38 #include "cmSubdirDependsCommand.cxx"
39 #include "cmUseMangledMesaCommand.cxx"
40 #include "cmUtilitySourceCommand.cxx"
41 #include "cmVariableRequiresCommand.cxx"
42 #include "cmVariableWatchCommand.cxx"
44 #include "cmWhileCommand.cxx"
45 #include "cmWriteFileCommand.cxx"
47 // This one must be last because it includes windows.h and
48 // windows.h #defines GetCurrentDirectory which is a member
49 // of cmMakefile
50 #include "cmLoadCommandCommand.cxx"
51 #endif
53 void GetPredefinedCommands(std::list<cmCommand*>&
54 #if defined(CMAKE_BUILD_WITH_CMAKE)
55 commands
56 #endif
59 #if defined(CMAKE_BUILD_WITH_CMAKE)
60 commands.push_back(new cmAuxSourceDirectoryCommand);
61 commands.push_back(new cmBuildNameCommand);
62 commands.push_back(new cmElseIfCommand);
63 commands.push_back(new cmEnableLanguageCommand);
64 commands.push_back(new cmEndWhileCommand);
65 commands.push_back(new cmExportCommand);
66 commands.push_back(new cmExportLibraryDependenciesCommand);
67 commands.push_back(new cmFLTKWrapUICommand);
68 commands.push_back(new cmIncludeExternalMSProjectCommand);
69 commands.push_back(new cmInstallProgramsCommand);
70 commands.push_back(new cmLinkLibrariesCommand);
71 commands.push_back(new cmLoadCacheCommand);
72 commands.push_back(new cmLoadCommandCommand);
73 commands.push_back(new cmOutputRequiredFilesCommand);
74 commands.push_back(new cmQTWrapCPPCommand);
75 commands.push_back(new cmQTWrapUICommand);
76 commands.push_back(new cmRemoveCommand);
77 commands.push_back(new cmRemoveDefinitionsCommand);
78 commands.push_back(new cmSetDirectoryPropertiesCommand);
79 commands.push_back(new cmSourceGroupCommand);
80 commands.push_back(new cmSubdirDependsCommand);
81 commands.push_back(new cmUseMangledMesaCommand);
82 commands.push_back(new cmUtilitySourceCommand);
83 commands.push_back(new cmVariableRequiresCommand);
84 commands.push_back(new cmVariableWatchCommand);
85 commands.push_back(new cmWhileCommand);
86 commands.push_back(new cmWriteFileCommand);
87 #endif