cmCommands.cxx 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 "cmEndWhileCommand.cxx"
  17. #include "cmExportLibraryDependencies.cxx"
  18. #include "cmEnableLanguageCommand.cxx"
  19. #include "cmFLTKWrapUICommand.cxx"
  20. #include "cmGetCMakePropertyCommand.cxx"
  21. #include "cmGetDirectoryPropertyCommand.cxx"
  22. #include "cmGetTargetPropertyCommand.cxx"
  23. #include "cmGetTestPropertyCommand.cxx"
  24. #include "cmITKWrapTclCommand.cxx"
  25. #include "cmIncludeExternalMSProjectCommand.cxx"
  26. #include "cmLinkLibrariesCommand.cxx"
  27. #include "cmLoadCacheCommand.cxx"
  28. #include "cmOutputRequiredFilesCommand.cxx"
  29. #include "cmRemoveCommand.cxx"
  30. #include "cmSetDirectoryPropertiesCommand.cxx"
  31. #include "cmSetTargetPropertiesCommand.cxx"
  32. #include "cmSetTestsPropertiesCommand.cxx"
  33. #include "cmSourceGroupCommand.cxx"
  34. #include "cmVTKMakeInstantiatorCommand.cxx"
  35. #include "cmVTKWrapJavaCommand.cxx"
  36. #include "cmVTKWrapPythonCommand.cxx"
  37. #include "cmVTKWrapTclCommand.cxx"
  38. #include "cmQTWrapCPPCommand.cxx"
  39. #include "cmQTWrapUICommand.cxx"
  40. #include "cmUseMangledMesaCommand.cxx"
  41. #include "cmUtilitySourceCommand.cxx"
  42. #include "cmWhileCommand.cxx"
  43. // This one must be last because it includes windows.h and
  44. // windows.h #defines GetCurrentDirectory which is a member
  45. // of cmMakefile
  46. #include "cmLoadCommandCommand.cxx"
  47. #endif
  48. void GetPredefinedCommands(std::list<cmCommand*>&
  49. #if defined(CMAKE_BUILD_WITH_CMAKE)
  50. commands
  51. #endif
  52. )
  53. {
  54. #if defined(CMAKE_BUILD_WITH_CMAKE)
  55. commands.push_back(new cmAuxSourceDirectoryCommand);
  56. commands.push_back(new cmEnableLanguageCommand);
  57. commands.push_back(new cmEndWhileCommand);
  58. commands.push_back(new cmExportLibraryDependenciesCommand);
  59. commands.push_back(new cmFLTKWrapUICommand);
  60. commands.push_back(new cmGetCMakePropertyCommand);
  61. commands.push_back(new cmGetDirectoryPropertyCommand);
  62. commands.push_back(new cmGetTargetPropertyCommand);
  63. commands.push_back(new cmGetTestPropertyCommand);
  64. commands.push_back(new cmITKWrapTclCommand);
  65. commands.push_back(new cmIncludeExternalMSProjectCommand);
  66. commands.push_back(new cmLinkLibrariesCommand);
  67. commands.push_back(new cmLoadCacheCommand);
  68. commands.push_back(new cmLoadCommandCommand);
  69. commands.push_back(new cmOutputRequiredFilesCommand);
  70. commands.push_back(new cmRemoveCommand);
  71. commands.push_back(new cmSetDirectoryPropertiesCommand);
  72. commands.push_back(new cmSetTargetPropertiesCommand);
  73. commands.push_back(new cmSetTestsPropertiesCommand);
  74. commands.push_back(new cmSourceGroupCommand);
  75. commands.push_back(new cmVTKMakeInstantiatorCommand);
  76. commands.push_back(new cmVTKWrapJavaCommand);
  77. commands.push_back(new cmVTKWrapPythonCommand);
  78. commands.push_back(new cmVTKWrapTclCommand);
  79. commands.push_back(new cmQTWrapCPPCommand);
  80. commands.push_back(new cmQTWrapUICommand);
  81. commands.push_back(new cmUseMangledMesaCommand);
  82. commands.push_back(new cmUtilitySourceCommand);
  83. commands.push_back(new cmWhileCommand);
  84. #endif
  85. }