cmCommands.cxx 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #include "cmCommands.h"
  14. #if defined(CMAKE_BUILD_WITH_CMAKE)
  15. #include "cmAuxSourceDirectoryCommand.cxx"
  16. #include "cmBuildNameCommand.cxx"
  17. #include "cmElseIfCommand.cxx"
  18. #include "cmEnableLanguageCommand.cxx"
  19. #include "cmEndWhileCommand.cxx"
  20. #include "cmExportCommand.cxx"
  21. #include "cmExportLibraryDependencies.cxx"
  22. #include "cmFLTKWrapUICommand.cxx"
  23. #include "cmGetTestPropertyCommand.cxx"
  24. #include "cmIncludeExternalMSProjectCommand.cxx"
  25. #include "cmInstallProgramsCommand.cxx"
  26. #include "cmLinkLibrariesCommand.cxx"
  27. #include "cmLoadCacheCommand.cxx"
  28. #include "cmOutputRequiredFilesCommand.cxx"
  29. #include "cmQTWrapCPPCommand.cxx"
  30. #include "cmQTWrapUICommand.cxx"
  31. #include "cmRemoveCommand.cxx"
  32. #include "cmRemoveDefinitionsCommand.cxx"
  33. #include "cmSetDirectoryPropertiesCommand.cxx"
  34. #include "cmSourceGroupCommand.cxx"
  35. #include "cmSubdirDependsCommand.cxx"
  36. #include "cmUseMangledMesaCommand.cxx"
  37. #include "cmUtilitySourceCommand.cxx"
  38. #include "cmVariableRequiresCommand.cxx"
  39. #include "cmVariableWatchCommand.cxx"
  40. #include "cmWhileCommand.cxx"
  41. #include "cmWriteFileCommand.cxx"
  42. // This one must be last because it includes windows.h and
  43. // windows.h #defines GetCurrentDirectory which is a member
  44. // of cmMakefile
  45. #include "cmLoadCommandCommand.cxx"
  46. #endif
  47. void GetPredefinedCommands(std::list<cmCommand*>&
  48. #if defined(CMAKE_BUILD_WITH_CMAKE)
  49. commands
  50. #endif
  51. )
  52. {
  53. #if defined(CMAKE_BUILD_WITH_CMAKE)
  54. commands.push_back(new cmAuxSourceDirectoryCommand);
  55. commands.push_back(new cmBuildNameCommand);
  56. commands.push_back(new cmElseIfCommand);
  57. commands.push_back(new cmEnableLanguageCommand);
  58. commands.push_back(new cmEndWhileCommand);
  59. commands.push_back(new cmExportCommand);
  60. commands.push_back(new cmExportLibraryDependenciesCommand);
  61. commands.push_back(new cmFLTKWrapUICommand);
  62. commands.push_back(new cmGetTestPropertyCommand);
  63. commands.push_back(new cmIncludeExternalMSProjectCommand);
  64. commands.push_back(new cmInstallProgramsCommand);
  65. commands.push_back(new cmLinkLibrariesCommand);
  66. commands.push_back(new cmLoadCacheCommand);
  67. commands.push_back(new cmLoadCommandCommand);
  68. commands.push_back(new cmOutputRequiredFilesCommand);
  69. commands.push_back(new cmQTWrapCPPCommand);
  70. commands.push_back(new cmQTWrapUICommand);
  71. commands.push_back(new cmRemoveCommand);
  72. commands.push_back(new cmRemoveDefinitionsCommand);
  73. commands.push_back(new cmSetDirectoryPropertiesCommand);
  74. commands.push_back(new cmSourceGroupCommand);
  75. commands.push_back(new cmSubdirDependsCommand);
  76. commands.push_back(new cmUseMangledMesaCommand);
  77. commands.push_back(new cmUtilitySourceCommand);
  78. commands.push_back(new cmVariableRequiresCommand);
  79. commands.push_back(new cmVariableWatchCommand);
  80. commands.push_back(new cmWhileCommand);
  81. commands.push_back(new cmWriteFileCommand);
  82. #endif
  83. }