cmake-commands.7.rst 3.9 KB

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