cmCommands.cxx 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 "cmTargetCompileDefinitionsCommand.cxx"
  30. #include "cmTargetCompileOptionsCommand.cxx"
  31. #include "cmTargetIncludeDirectoriesCommand.cxx"
  32. #include "cmTargetPropCommandBase.cxx"
  33. #include "cmUseMangledMesaCommand.cxx"
  34. #include "cmUtilitySourceCommand.cxx"
  35. #include "cmVariableRequiresCommand.cxx"
  36. #include "cmVariableWatchCommand.cxx"
  37. #include "cmWriteFileCommand.cxx"
  38. // This one must be last because it includes windows.h and
  39. // windows.h #defines GetCurrentDirectory which is a member
  40. // of cmMakefile
  41. #include "cmLoadCommandCommand.cxx"
  42. #endif
  43. void GetPredefinedCommands(std::list<cmCommand*>&
  44. #if defined(CMAKE_BUILD_WITH_CMAKE)
  45. commands
  46. #endif
  47. )
  48. {
  49. #if defined(CMAKE_BUILD_WITH_CMAKE)
  50. commands.push_back(new cmAuxSourceDirectoryCommand);
  51. commands.push_back(new cmBuildNameCommand);
  52. commands.push_back(new cmElseIfCommand);
  53. commands.push_back(new cmExportCommand);
  54. commands.push_back(new cmExportLibraryDependenciesCommand);
  55. commands.push_back(new cmFLTKWrapUICommand);
  56. commands.push_back(new cmIncludeExternalMSProjectCommand);
  57. commands.push_back(new cmInstallProgramsCommand);
  58. commands.push_back(new cmLinkLibrariesCommand);
  59. commands.push_back(new cmLoadCacheCommand);
  60. commands.push_back(new cmLoadCommandCommand);
  61. commands.push_back(new cmOutputRequiredFilesCommand);
  62. commands.push_back(new cmQTWrapCPPCommand);
  63. commands.push_back(new cmQTWrapUICommand);
  64. commands.push_back(new cmRemoveCommand);
  65. commands.push_back(new cmRemoveDefinitionsCommand);
  66. commands.push_back(new cmSourceGroupCommand);
  67. commands.push_back(new cmSubdirDependsCommand);
  68. commands.push_back(new cmTargetIncludeDirectoriesCommand);
  69. commands.push_back(new cmTargetCompileDefinitionsCommand);
  70. commands.push_back(new cmTargetCompileOptionsCommand);
  71. commands.push_back(new cmUseMangledMesaCommand);
  72. commands.push_back(new cmUtilitySourceCommand);
  73. commands.push_back(new cmVariableRequiresCommand);
  74. commands.push_back(new cmVariableWatchCommand);
  75. commands.push_back(new cmWriteFileCommand);
  76. #endif
  77. }