cmCommands.cxx 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmCommands.h"
  11. #if defined(CMAKE_BUILD_WITH_CMAKE)
  12. #include "cmAuxSourceDirectoryCommand.cxx"
  13. #include "cmBuildNameCommand.cxx"
  14. #include "cmElseIfCommand.cxx"
  15. #include "cmExportCommand.cxx"
  16. #include "cmExportLibraryDependencies.cxx"
  17. #include "cmFLTKWrapUICommand.cxx"
  18. #include "cmIncludeExternalMSProjectCommand.cxx"
  19. #include "cmInstallProgramsCommand.cxx"
  20. #include "cmLinkLibrariesCommand.cxx"
  21. #include "cmLoadCacheCommand.cxx"
  22. #include "cmOutputRequiredFilesCommand.cxx"
  23. #include "cmQTWrapCPPCommand.cxx"
  24. #include "cmQTWrapUICommand.cxx"
  25. #include "cmRemoveCommand.cxx"
  26. #include "cmRemoveDefinitionsCommand.cxx"
  27. #include "cmSourceGroupCommand.cxx"
  28. #include "cmSubdirDependsCommand.cxx"
  29. #include "cmUseMangledMesaCommand.cxx"
  30. #include "cmUtilitySourceCommand.cxx"
  31. #include "cmVariableRequiresCommand.cxx"
  32. #include "cmVariableWatchCommand.cxx"
  33. #include "cmWriteFileCommand.cxx"
  34. // This one must be last because it includes windows.h and
  35. // windows.h #defines GetCurrentDirectory which is a member
  36. // of cmMakefile
  37. #include "cmLoadCommandCommand.cxx"
  38. #endif
  39. void GetPredefinedCommands(std::list<cmCommand*>&
  40. #if defined(CMAKE_BUILD_WITH_CMAKE)
  41. commands
  42. #endif
  43. )
  44. {
  45. #if defined(CMAKE_BUILD_WITH_CMAKE)
  46. commands.push_back(new cmAuxSourceDirectoryCommand);
  47. commands.push_back(new cmBuildNameCommand);
  48. commands.push_back(new cmElseIfCommand);
  49. commands.push_back(new cmExportCommand);
  50. commands.push_back(new cmExportLibraryDependenciesCommand);
  51. commands.push_back(new cmFLTKWrapUICommand);
  52. commands.push_back(new cmIncludeExternalMSProjectCommand);
  53. commands.push_back(new cmInstallProgramsCommand);
  54. commands.push_back(new cmLinkLibrariesCommand);
  55. commands.push_back(new cmLoadCacheCommand);
  56. commands.push_back(new cmLoadCommandCommand);
  57. commands.push_back(new cmOutputRequiredFilesCommand);
  58. commands.push_back(new cmQTWrapCPPCommand);
  59. commands.push_back(new cmQTWrapUICommand);
  60. commands.push_back(new cmRemoveCommand);
  61. commands.push_back(new cmRemoveDefinitionsCommand);
  62. commands.push_back(new cmSourceGroupCommand);
  63. commands.push_back(new cmSubdirDependsCommand);
  64. commands.push_back(new cmUseMangledMesaCommand);
  65. commands.push_back(new cmUtilitySourceCommand);
  66. commands.push_back(new cmVariableRequiresCommand);
  67. commands.push_back(new cmVariableWatchCommand);
  68. commands.push_back(new cmWriteFileCommand);
  69. #endif
  70. }