cmake-commands.7.rst 4.1 KB

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