1
0

cmake-commands.7.rst 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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/else
  19. /command/elseif
  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
  50. /command/set_directory_properties
  51. /command/set_property
  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/remove_definitions
  93. /command/set_source_files_properties
  94. /command/set_target_properties
  95. /command/set_tests_properties
  96. /command/source_group
  97. /command/target_compile_definitions
  98. /command/target_compile_features
  99. /command/target_compile_options
  100. /command/target_include_directories
  101. /command/target_link_directories
  102. /command/target_link_libraries
  103. /command/target_link_options
  104. /command/target_precompile_headers
  105. /command/target_sources
  106. /command/try_compile
  107. /command/try_run
  108. .. _`CTest Commands`:
  109. CTest Commands
  110. ==============
  111. These commands are available only in CTest scripts.
  112. .. toctree::
  113. :maxdepth: 1
  114. /command/ctest_build
  115. /command/ctest_configure
  116. /command/ctest_coverage
  117. /command/ctest_empty_binary_directory
  118. /command/ctest_memcheck
  119. /command/ctest_read_custom_files
  120. /command/ctest_run_script
  121. /command/ctest_sleep
  122. /command/ctest_start
  123. /command/ctest_submit
  124. /command/ctest_test
  125. /command/ctest_update
  126. /command/ctest_upload
  127. Deprecated Commands
  128. ===================
  129. These commands are deprecated and are only made available to maintain
  130. backward compatibility. The documentation of each command states the
  131. CMake version in which it was deprecated. Do not use these commands
  132. 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/qt_wrap_cpp
  145. /command/qt_wrap_ui
  146. /command/remove
  147. /command/subdir_depends
  148. /command/subdirs
  149. /command/use_mangled_mesa
  150. /command/utility_source
  151. /command/variable_requires
  152. /command/write_file