cmake-commands.7.rst 4.1 KB

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