1
0

cmake-commands.7.rst 4.0 KB

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