cmCommands.cxx 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 "cmIncludeExternalMSProjectCommand.cxx"
  25. #include "cmLinkLibrariesCommand.cxx"
  26. #include "cmLoadCacheCommand.cxx"
  27. #include "cmOutputRequiredFilesCommand.cxx"
  28. #include "cmRemoveCommand.cxx"
  29. #include "cmSetDirectoryPropertiesCommand.cxx"
  30. #include "cmSetTargetPropertiesCommand.cxx"
  31. #include "cmSetTestsPropertiesCommand.cxx"
  32. #include "cmSourceGroupCommand.cxx"
  33. #include "cmVTKMakeInstantiatorCommand.cxx"
  34. #include "cmVTKWrapJavaCommand.cxx"
  35. #include "cmVTKWrapPythonCommand.cxx"
  36. #include "cmVTKWrapTclCommand.cxx"
  37. #include "cmQTWrapCPPCommand.cxx"
  38. #include "cmQTWrapUICommand.cxx"
  39. #include "cmUseMangledMesaCommand.cxx"
  40. #include "cmUtilitySourceCommand.cxx"
  41. #include "cmWhileCommand.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 cmEnableLanguageCommand);
  56. commands.push_back(new cmEndWhileCommand);
  57. commands.push_back(new cmExportLibraryDependenciesCommand);
  58. commands.push_back(new cmFLTKWrapUICommand);
  59. commands.push_back(new cmGetCMakePropertyCommand);
  60. commands.push_back(new cmGetDirectoryPropertyCommand);
  61. commands.push_back(new cmGetTargetPropertyCommand);
  62. commands.push_back(new cmGetTestPropertyCommand);
  63. commands.push_back(new cmIncludeExternalMSProjectCommand);
  64. commands.push_back(new cmLinkLibrariesCommand);
  65. commands.push_back(new cmLoadCacheCommand);
  66. commands.push_back(new cmLoadCommandCommand);
  67. commands.push_back(new cmOutputRequiredFilesCommand);
  68. commands.push_back(new cmRemoveCommand);
  69. commands.push_back(new cmSetDirectoryPropertiesCommand);
  70. commands.push_back(new cmSetTargetPropertiesCommand);
  71. commands.push_back(new cmSetTestsPropertiesCommand);
  72. commands.push_back(new cmSourceGroupCommand);
  73. commands.push_back(new cmVTKMakeInstantiatorCommand);
  74. commands.push_back(new cmVTKWrapJavaCommand);
  75. commands.push_back(new cmVTKWrapPythonCommand);
  76. commands.push_back(new cmVTKWrapTclCommand);
  77. commands.push_back(new cmQTWrapCPPCommand);
  78. commands.push_back(new cmQTWrapUICommand);
  79. commands.push_back(new cmUseMangledMesaCommand);
  80. commands.push_back(new cmUtilitySourceCommand);
  81. commands.push_back(new cmWhileCommand);
  82. #endif
  83. }