You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
4.1 KiB

19 years ago
23 years ago
19 years ago
  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 "cmDefinePropertyCommand.cxx"
  18. #include "cmElseIfCommand.cxx"
  19. #include "cmEnableLanguageCommand.cxx"
  20. #include "cmEndMacroCommand.cxx"
  21. #include "cmEndWhileCommand.cxx"
  22. #include "cmExecuteProcessCommand.cxx"
  23. #include "cmExportCommand.cxx"
  24. #include "cmExportLibraryDependencies.cxx"
  25. #include "cmFLTKWrapUICommand.cxx"
  26. #include "cmGetDirectoryPropertyCommand.cxx"
  27. #include "cmGetPropertyCommand.cxx"
  28. #include "cmGetTestPropertyCommand.cxx"
  29. #include "cmIncludeExternalMSProjectCommand.cxx"
  30. #include "cmInstallCommand.cxx"
  31. #include "cmInstallCommandArguments.cxx"
  32. #include "cmInstallProgramsCommand.cxx"
  33. #include "cmLinkLibrariesCommand.cxx"
  34. #include "cmLoadCacheCommand.cxx"
  35. #include "cmMathCommand.cxx"
  36. #include "cmOutputRequiredFilesCommand.cxx"
  37. #include "cmQTWrapCPPCommand.cxx"
  38. #include "cmQTWrapUICommand.cxx"
  39. #include "cmRemoveCommand.cxx"
  40. #include "cmRemoveDefinitionsCommand.cxx"
  41. #include "cmSeparateArgumentsCommand.cxx"
  42. #include "cmSetDirectoryPropertiesCommand.cxx"
  43. #include "cmSourceGroupCommand.cxx"
  44. #include "cmSubdirDependsCommand.cxx"
  45. #include "cmUseMangledMesaCommand.cxx"
  46. #include "cmUtilitySourceCommand.cxx"
  47. #include "cmVariableRequiresCommand.cxx"
  48. #include "cmVariableWatchCommand.cxx"
  49. #include "cmWhileCommand.cxx"
  50. #include "cmWriteFileCommand.cxx"
  51. // This one must be last because it includes windows.h and
  52. // windows.h #defines GetCurrentDirectory which is a member
  53. // of cmMakefile
  54. #include "cmLoadCommandCommand.cxx"
  55. #endif
  56. void GetPredefinedCommands(std::list<cmCommand*>&
  57. #if defined(CMAKE_BUILD_WITH_CMAKE)
  58. commands
  59. #endif
  60. )
  61. {
  62. #if defined(CMAKE_BUILD_WITH_CMAKE)
  63. commands.push_back(new cmAuxSourceDirectoryCommand);
  64. commands.push_back(new cmBuildNameCommand);
  65. commands.push_back(new cmDefinePropertyCommand);
  66. commands.push_back(new cmElseIfCommand);
  67. commands.push_back(new cmEnableLanguageCommand);
  68. commands.push_back(new cmEndMacroCommand);
  69. commands.push_back(new cmEndWhileCommand);
  70. commands.push_back(new cmExecuteProcessCommand);
  71. commands.push_back(new cmExportCommand);
  72. commands.push_back(new cmExportLibraryDependenciesCommand);
  73. commands.push_back(new cmFLTKWrapUICommand);
  74. commands.push_back(new cmGetDirectoryPropertyCommand);
  75. commands.push_back(new cmGetPropertyCommand);
  76. commands.push_back(new cmGetTestPropertyCommand);
  77. commands.push_back(new cmIncludeExternalMSProjectCommand);
  78. commands.push_back(new cmInstallCommand);
  79. commands.push_back(new cmInstallProgramsCommand);
  80. commands.push_back(new cmLinkLibrariesCommand);
  81. commands.push_back(new cmLoadCacheCommand);
  82. commands.push_back(new cmLoadCommandCommand);
  83. commands.push_back(new cmMathCommand);
  84. commands.push_back(new cmOutputRequiredFilesCommand);
  85. commands.push_back(new cmQTWrapCPPCommand);
  86. commands.push_back(new cmQTWrapUICommand);
  87. commands.push_back(new cmRemoveCommand);
  88. commands.push_back(new cmRemoveDefinitionsCommand);
  89. commands.push_back(new cmSeparateArgumentsCommand);
  90. commands.push_back(new cmSetDirectoryPropertiesCommand);
  91. commands.push_back(new cmSourceGroupCommand);
  92. commands.push_back(new cmSubdirDependsCommand);
  93. commands.push_back(new cmUseMangledMesaCommand);
  94. commands.push_back(new cmUtilitySourceCommand);
  95. commands.push_back(new cmVariableRequiresCommand);
  96. commands.push_back(new cmVariableWatchCommand);
  97. commands.push_back(new cmWhileCommand);
  98. commands.push_back(new cmWriteFileCommand);
  99. #endif
  100. }