cmCommands.cxx 3.1 KB

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