cmBootstrapCommands1.cxx 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. // This file is used to compile all the commands
  4. // that CMake knows about at compile time.
  5. // This is sort of a boot strapping approach since you would
  6. // like to have CMake to build CMake.
  7. #include "cmAddCustomCommandCommand.h"
  8. #include "cmAddCustomTargetCommand.h"
  9. #include "cmAddDefinitionsCommand.h"
  10. #include "cmAddDependenciesCommand.h"
  11. #include "cmAddExecutableCommand.h"
  12. #include "cmAddLibraryCommand.h"
  13. #include "cmAddSubDirectoryCommand.h"
  14. #include "cmAddTestCommand.h"
  15. #include "cmBreakCommand.h"
  16. #include "cmBuildCommand.h"
  17. #include "cmCMakeMinimumRequired.h"
  18. #include "cmCMakePolicyCommand.h"
  19. #include "cmCommandArgumentsHelper.h"
  20. #include "cmCommands.h"
  21. #include "cmConfigureFileCommand.h"
  22. #include "cmContinueCommand.h"
  23. #include "cmCoreTryCompile.h"
  24. #include "cmCreateTestSourceList.h"
  25. #include "cmDefinePropertyCommand.h"
  26. #include "cmElseCommand.h"
  27. #include "cmEnableLanguageCommand.h"
  28. #include "cmEnableTestingCommand.h"
  29. #include "cmEndForEachCommand.h"
  30. #include "cmEndFunctionCommand.h"
  31. #include "cmEndIfCommand.h"
  32. #include "cmEndMacroCommand.h"
  33. #include "cmEndWhileCommand.h"
  34. #include "cmExecProgramCommand.h"
  35. #include "cmExecuteProcessCommand.h"
  36. #include "cmFileCommand.h"
  37. #include "cmFindBase.h"
  38. #include "cmFindCommon.h"
  39. #include "cmFindFileCommand.h"
  40. #include "cmFindLibraryCommand.h"
  41. #include "cmFindPackageCommand.h"
  42. #include "cmFindPathCommand.h"
  43. #include "cmFindProgramCommand.h"
  44. #include "cmForEachCommand.h"
  45. #include "cmFunctionCommand.h"
  46. #include "cmParseArgumentsCommand.h"
  47. #include "cmPathLabel.h"
  48. #include "cmSearchPath.h"
  49. void GetBootstrapCommands1(std::vector<cmCommand*>& commands)
  50. {
  51. commands.push_back(new cmAddCustomCommandCommand);
  52. commands.push_back(new cmAddCustomTargetCommand);
  53. commands.push_back(new cmAddDefinitionsCommand);
  54. commands.push_back(new cmAddDependenciesCommand);
  55. commands.push_back(new cmAddExecutableCommand);
  56. commands.push_back(new cmAddLibraryCommand);
  57. commands.push_back(new cmAddSubDirectoryCommand);
  58. commands.push_back(new cmAddTestCommand);
  59. commands.push_back(new cmBreakCommand);
  60. commands.push_back(new cmBuildCommand);
  61. commands.push_back(new cmCMakeMinimumRequired);
  62. commands.push_back(new cmCMakePolicyCommand);
  63. commands.push_back(new cmConfigureFileCommand);
  64. commands.push_back(new cmContinueCommand);
  65. commands.push_back(new cmCreateTestSourceList);
  66. commands.push_back(new cmDefinePropertyCommand);
  67. commands.push_back(new cmElseCommand);
  68. commands.push_back(new cmEnableLanguageCommand);
  69. commands.push_back(new cmEnableTestingCommand);
  70. commands.push_back(new cmEndForEachCommand);
  71. commands.push_back(new cmEndFunctionCommand);
  72. commands.push_back(new cmEndIfCommand);
  73. commands.push_back(new cmEndMacroCommand);
  74. commands.push_back(new cmEndWhileCommand);
  75. commands.push_back(new cmExecProgramCommand);
  76. commands.push_back(new cmExecuteProcessCommand);
  77. commands.push_back(new cmFileCommand);
  78. commands.push_back(new cmFindFileCommand);
  79. commands.push_back(new cmFindLibraryCommand);
  80. commands.push_back(new cmFindPackageCommand);
  81. commands.push_back(new cmFindPathCommand);
  82. commands.push_back(new cmFindProgramCommand);
  83. commands.push_back(new cmForEachCommand);
  84. commands.push_back(new cmFunctionCommand);
  85. commands.push_back(new cmParseArgumentsCommand);
  86. }