cmake-commands.7.rst 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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_options
  63. /command/add_custom_command
  64. /command/add_custom_target
  65. /command/add_definitions
  66. /command/add_dependencies
  67. /command/add_executable
  68. /command/add_library
  69. /command/add_subdirectory
  70. /command/add_test
  71. /command/aux_source_directory
  72. /command/build_command
  73. /command/create_test_sourcelist
  74. /command/define_property
  75. /command/enable_language
  76. /command/enable_testing
  77. /command/export
  78. /command/fltk_wrap_ui
  79. /command/get_source_file_property
  80. /command/get_target_property
  81. /command/get_test_property
  82. /command/include_directories
  83. /command/include_external_msproject
  84. /command/include_regular_expression
  85. /command/install
  86. /command/link_directories
  87. /command/link_libraries
  88. /command/load_cache
  89. /command/project
  90. /command/qt_wrap_cpp
  91. /command/qt_wrap_ui
  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_libraries
  102. /command/target_sources
  103. /command/try_compile
  104. /command/try_run
  105. .. _`CTest Commands`:
  106. CTest Commands
  107. ==============
  108. These commands are available only in CTest scripts.
  109. .. toctree::
  110. :maxdepth: 1
  111. /command/ctest_build
  112. /command/ctest_configure
  113. /command/ctest_coverage
  114. /command/ctest_empty_binary_directory
  115. /command/ctest_memcheck
  116. /command/ctest_read_custom_files
  117. /command/ctest_run_script
  118. /command/ctest_sleep
  119. /command/ctest_start
  120. /command/ctest_submit
  121. /command/ctest_test
  122. /command/ctest_update
  123. /command/ctest_upload
  124. Deprecated Commands
  125. ===================
  126. These commands are available only for compatibility with older
  127. versions of CMake. Do not use them in new code.
  128. .. toctree::
  129. :maxdepth: 1
  130. /command/build_name
  131. /command/exec_program
  132. /command/export_library_dependencies
  133. /command/install_files
  134. /command/install_programs
  135. /command/install_targets
  136. /command/load_command
  137. /command/make_directory
  138. /command/output_required_files
  139. /command/remove
  140. /command/subdir_depends
  141. /command/subdirs
  142. /command/use_mangled_mesa
  143. /command/utility_source
  144. /command/variable_requires
  145. /command/write_file