cmake-commands.7.rst 4.1 KB

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