cmake-commands.7.rst 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. .. cmake-manual-description: CMake Language Command Reference
  2. cmake-commands(7)
  3. *****************
  4. .. only:: html
  5. .. contents::
  6. Scripting Commands
  7. ==================
  8. These commands are always available.
  9. .. toctree::
  10. :maxdepth: 1
  11. /command/block
  12. /command/break
  13. /command/cmake_host_system_information
  14. /command/cmake_language
  15. /command/cmake_minimum_required
  16. /command/cmake_parse_arguments
  17. /command/cmake_path
  18. /command/cmake_pkg_config
  19. /command/cmake_policy
  20. /command/configure_file
  21. /command/continue
  22. /command/else
  23. /command/elseif
  24. /command/endblock
  25. /command/endforeach
  26. /command/endfunction
  27. /command/endif
  28. /command/endmacro
  29. /command/endwhile
  30. /command/execute_process
  31. /command/file
  32. /command/find_file
  33. /command/find_library
  34. /command/find_package
  35. /command/find_path
  36. /command/find_program
  37. /command/foreach
  38. /command/function
  39. /command/get_cmake_property
  40. /command/get_directory_property
  41. /command/get_filename_component
  42. /command/get_property
  43. /command/if
  44. /command/include
  45. /command/include_guard
  46. /command/list
  47. /command/macro
  48. /command/mark_as_advanced
  49. /command/math
  50. /command/message
  51. /command/option
  52. /command/return
  53. /command/separate_arguments
  54. /command/set
  55. /command/set_directory_properties
  56. /command/set_property
  57. /command/site_name
  58. /command/string
  59. /command/unset
  60. /command/variable_watch
  61. /command/while
  62. Project Commands
  63. ================
  64. These commands are available only in CMake projects.
  65. .. toctree::
  66. :maxdepth: 1
  67. /command/add_compile_definitions
  68. /command/add_compile_options
  69. /command/add_custom_command
  70. /command/add_custom_target
  71. /command/add_definitions
  72. /command/add_dependencies
  73. /command/add_executable
  74. /command/add_library
  75. /command/add_link_options
  76. /command/add_subdirectory
  77. /command/add_test
  78. /command/aux_source_directory
  79. /command/build_command
  80. /command/cmake_file_api
  81. /command/create_test_sourcelist
  82. /command/define_property
  83. /command/enable_language
  84. /command/enable_testing
  85. /command/export
  86. /command/fltk_wrap_ui
  87. /command/get_source_file_property
  88. /command/get_target_property
  89. /command/get_test_property
  90. /command/include_directories
  91. /command/include_external_msproject
  92. /command/include_regular_expression
  93. /command/install
  94. /command/link_directories
  95. /command/link_libraries
  96. /command/load_cache
  97. /command/project
  98. /command/remove_definitions
  99. /command/set_source_files_properties
  100. /command/set_target_properties
  101. /command/set_tests_properties
  102. /command/source_group
  103. /command/target_compile_definitions
  104. /command/target_compile_features
  105. /command/target_compile_options
  106. /command/target_include_directories
  107. /command/target_link_directories
  108. /command/target_link_libraries
  109. /command/target_link_options
  110. /command/target_precompile_headers
  111. /command/target_sources
  112. /command/try_compile
  113. /command/try_run
  114. .. _`CTest Commands`:
  115. CTest Commands
  116. ==============
  117. These commands are available only in CTest scripts.
  118. .. toctree::
  119. :maxdepth: 1
  120. /command/ctest_build
  121. /command/ctest_configure
  122. /command/ctest_coverage
  123. /command/ctest_empty_binary_directory
  124. /command/ctest_memcheck
  125. /command/ctest_read_custom_files
  126. /command/ctest_run_script
  127. /command/ctest_sleep
  128. /command/ctest_start
  129. /command/ctest_submit
  130. /command/ctest_test
  131. /command/ctest_update
  132. /command/ctest_upload
  133. Deprecated Commands
  134. ===================
  135. These commands are deprecated and are only made available to maintain
  136. backward compatibility. The documentation of each command states the
  137. CMake version in which it was deprecated. Do not use these commands
  138. in new code.
  139. .. toctree::
  140. :maxdepth: 1
  141. /command/build_name
  142. /command/exec_program
  143. /command/export_library_dependencies
  144. /command/install_files
  145. /command/install_programs
  146. /command/install_targets
  147. /command/load_command
  148. /command/make_directory
  149. /command/output_required_files
  150. /command/qt_wrap_cpp
  151. /command/qt_wrap_ui
  152. /command/remove
  153. /command/subdir_depends
  154. /command/subdirs
  155. /command/use_mangled_mesa
  156. /command/utility_source
  157. /command/variable_requires
  158. /command/write_file