1
0

cmake-commands.7.rst 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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/cmake_instrumentation
  82. /command/create_test_sourcelist
  83. /command/define_property
  84. /command/enable_language
  85. /command/enable_testing
  86. /command/export
  87. /command/fltk_wrap_ui
  88. /command/get_source_file_property
  89. /command/get_target_property
  90. /command/get_test_property
  91. /command/include_directories
  92. /command/include_external_msproject
  93. /command/include_regular_expression
  94. /command/install
  95. /command/link_directories
  96. /command/link_libraries
  97. /command/load_cache
  98. /command/project
  99. /command/remove_definitions
  100. /command/set_source_files_properties
  101. /command/set_target_properties
  102. /command/set_tests_properties
  103. /command/source_group
  104. /command/target_compile_definitions
  105. /command/target_compile_features
  106. /command/target_compile_options
  107. /command/target_include_directories
  108. /command/target_link_directories
  109. /command/target_link_libraries
  110. /command/target_link_options
  111. /command/target_precompile_headers
  112. /command/target_sources
  113. /command/try_compile
  114. /command/try_run
  115. .. _`CTest Commands`:
  116. CTest Commands
  117. ==============
  118. These commands are available only in CTest scripts.
  119. .. toctree::
  120. :maxdepth: 1
  121. /command/ctest_build
  122. /command/ctest_configure
  123. /command/ctest_coverage
  124. /command/ctest_empty_binary_directory
  125. /command/ctest_memcheck
  126. /command/ctest_read_custom_files
  127. /command/ctest_run_script
  128. /command/ctest_sleep
  129. /command/ctest_start
  130. /command/ctest_submit
  131. /command/ctest_test
  132. /command/ctest_update
  133. /command/ctest_upload
  134. Deprecated Commands
  135. ===================
  136. These commands are deprecated and are only made available to maintain
  137. backward compatibility. The documentation of each command states the
  138. CMake version in which it was deprecated. Do not use these commands
  139. in new code.
  140. .. toctree::
  141. :maxdepth: 1
  142. /command/build_name
  143. /command/exec_program
  144. /command/export_library_dependencies
  145. /command/install_files
  146. /command/install_programs
  147. /command/install_targets
  148. /command/load_command
  149. /command/make_directory
  150. /command/output_required_files
  151. /command/qt_wrap_cpp
  152. /command/qt_wrap_ui
  153. /command/remove
  154. /command/subdir_depends
  155. /command/subdirs
  156. /command/use_mangled_mesa
  157. /command/utility_source
  158. /command/variable_requires
  159. /command/write_file