cmBootstrapCommands.cxx 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. // This file is used to compile all the commands
  14. // that CMake knows about at compile time.
  15. // This is sort of a boot strapping approach since you would
  16. // like to have CMake to build CMake.
  17. #include "cmCommands.h"
  18. #include "cmAddCustomCommandCommand.cxx"
  19. #include "cmAddCustomTargetCommand.cxx"
  20. #include "cmAddDefinitionsCommand.cxx"
  21. #include "cmAddDependenciesCommand.cxx"
  22. #include "cmAddExecutableCommand.cxx"
  23. #include "cmAddLibraryCommand.cxx"
  24. #include "cmAddSubDirectoryCommand.cxx"
  25. #include "cmAddTestCommand.cxx"
  26. #include "cmBreakCommand.cxx"
  27. #include "cmBuildCommand.cxx"
  28. #include "cmCMakeMinimumRequired.cxx"
  29. #include "cmCommandArgumentsHelper.cxx"
  30. #include "cmConfigureFileCommand.cxx"
  31. #include "cmCoreTryCompile.cxx"
  32. #include "cmCreateTestSourceList.cxx"
  33. #include "cmDefinePropertyCommand.cxx"
  34. #include "cmElseCommand.cxx"
  35. #include "cmEnableTestingCommand.cxx"
  36. #include "cmEndForEachCommand.cxx"
  37. #include "cmEndFunctionCommand.cxx"
  38. #include "cmEndIfCommand.cxx"
  39. #include "cmEndMacroCommand.cxx"
  40. #include "cmExecProgramCommand.cxx"
  41. #include "cmExecuteProcessCommand.cxx"
  42. #include "cmExternalMakefileProjectGenerator.cxx"
  43. #include "cmFindBase.cxx"
  44. #include "cmFindCommon.cxx"
  45. #include "cmFileCommand.cxx"
  46. #include "cmFindFileCommand.cxx"
  47. #include "cmFindLibraryCommand.cxx"
  48. #include "cmFindPackageCommand.cxx"
  49. #include "cmFindPathCommand.cxx"
  50. #include "cmFindProgramCommand.cxx"
  51. #include "cmForEachCommand.cxx"
  52. #include "cmFunctionCommand.cxx"
  53. #include "cmGetCMakePropertyCommand.cxx"
  54. #include "cmGetDirectoryPropertyCommand.cxx"
  55. #include "cmGetFilenameComponentCommand.cxx"
  56. #include "cmGetPropertyCommand.cxx"
  57. #include "cmGetSourceFilePropertyCommand.cxx"
  58. #include "cmGetTargetPropertyCommand.cxx"
  59. #include "cmHexFileConverter.cxx"
  60. #include "cmIfCommand.cxx"
  61. #include "cmIncludeCommand.cxx"
  62. #include "cmIncludeDirectoryCommand.cxx"
  63. #include "cmIncludeRegularExpressionCommand.cxx"
  64. #include "cmInstallFilesCommand.cxx"
  65. #include "cmInstallCommandArguments.cxx"
  66. #include "cmInstallCommand.cxx"
  67. #include "cmInstallTargetsCommand.cxx"
  68. #include "cmLinkDirectoriesCommand.cxx"
  69. #include "cmListCommand.cxx"
  70. #include "cmMacroCommand.cxx"
  71. #include "cmMakeDirectoryCommand.cxx"
  72. #include "cmMarkAsAdvancedCommand.cxx"
  73. #include "cmMathCommand.cxx"
  74. #include "cmMessageCommand.cxx"
  75. #include "cmOptionCommand.cxx"
  76. #include "cmProjectCommand.cxx"
  77. #include "cmReturnCommand.cxx"
  78. #include "cmSeparateArgumentsCommand.cxx"
  79. #include "cmSetCommand.cxx"
  80. #include "cmSetPropertyCommand.cxx"
  81. #include "cmSetSourceFilesPropertiesCommand.cxx"
  82. #include "cmSetTargetPropertiesCommand.cxx"
  83. #include "cmSetTestsPropertiesCommand.cxx"
  84. #include "cmSiteNameCommand.cxx"
  85. #include "cmStringCommand.cxx"
  86. #include "cmSubdirCommand.cxx"
  87. #include "cmTargetLinkLibrariesCommand.cxx"
  88. #include "cmTryCompileCommand.cxx"
  89. #include "cmTryRunCommand.cxx"
  90. void GetBootstrapCommands(std::list<cmCommand*>& commands)
  91. {
  92. commands.push_back(new cmAddCustomCommandCommand);
  93. commands.push_back(new cmAddCustomTargetCommand);
  94. commands.push_back(new cmAddDefinitionsCommand);
  95. commands.push_back(new cmAddDependenciesCommand);
  96. commands.push_back(new cmAddExecutableCommand);
  97. commands.push_back(new cmAddLibraryCommand);
  98. commands.push_back(new cmAddSubDirectoryCommand);
  99. commands.push_back(new cmAddTestCommand);
  100. commands.push_back(new cmBreakCommand);
  101. commands.push_back(new cmBuildCommand);
  102. commands.push_back(new cmCMakeMinimumRequired);
  103. commands.push_back(new cmConfigureFileCommand);
  104. commands.push_back(new cmCreateTestSourceList);
  105. commands.push_back(new cmDefinePropertyCommand);
  106. commands.push_back(new cmElseCommand);
  107. commands.push_back(new cmEnableTestingCommand);
  108. commands.push_back(new cmEndForEachCommand);
  109. commands.push_back(new cmEndFunctionCommand);
  110. commands.push_back(new cmEndIfCommand);
  111. commands.push_back(new cmEndMacroCommand);
  112. commands.push_back(new cmExecProgramCommand);
  113. commands.push_back(new cmExecuteProcessCommand);
  114. commands.push_back(new cmFileCommand);
  115. commands.push_back(new cmFindFileCommand);
  116. commands.push_back(new cmFindLibraryCommand);
  117. commands.push_back(new cmFindPackageCommand);
  118. commands.push_back(new cmFindPathCommand);
  119. commands.push_back(new cmFindProgramCommand);
  120. commands.push_back(new cmForEachCommand);
  121. commands.push_back(new cmFunctionCommand);
  122. commands.push_back(new cmGetCMakePropertyCommand);
  123. commands.push_back(new cmGetDirectoryPropertyCommand);
  124. commands.push_back(new cmGetFilenameComponentCommand);
  125. commands.push_back(new cmGetPropertyCommand);
  126. commands.push_back(new cmGetSourceFilePropertyCommand);
  127. commands.push_back(new cmGetTargetPropertyCommand);
  128. commands.push_back(new cmIfCommand);
  129. commands.push_back(new cmIncludeCommand);
  130. commands.push_back(new cmIncludeDirectoryCommand);
  131. commands.push_back(new cmIncludeRegularExpressionCommand);
  132. commands.push_back(new cmInstallCommand);
  133. commands.push_back(new cmInstallFilesCommand);
  134. commands.push_back(new cmInstallTargetsCommand);
  135. commands.push_back(new cmLinkDirectoriesCommand);
  136. commands.push_back(new cmListCommand);
  137. commands.push_back(new cmMacroCommand);
  138. commands.push_back(new cmMakeDirectoryCommand);
  139. commands.push_back(new cmMarkAsAdvancedCommand);
  140. commands.push_back(new cmMathCommand);
  141. commands.push_back(new cmMessageCommand);
  142. commands.push_back(new cmOptionCommand);
  143. commands.push_back(new cmProjectCommand);
  144. commands.push_back(new cmReturnCommand);
  145. commands.push_back(new cmSeparateArgumentsCommand);
  146. commands.push_back(new cmSetCommand);
  147. commands.push_back(new cmSetPropertyCommand);
  148. commands.push_back(new cmSetSourceFilesPropertiesCommand);
  149. commands.push_back(new cmSetTargetPropertiesCommand);
  150. commands.push_back(new cmSetTestsPropertiesCommand);
  151. commands.push_back(new cmSiteNameCommand);
  152. commands.push_back(new cmStringCommand);
  153. commands.push_back(new cmSubdirCommand);
  154. commands.push_back(new cmTargetLinkLibrariesCommand);
  155. commands.push_back(new cmTryCompileCommand);
  156. commands.push_back(new cmTryRunCommand);
  157. }