1
0

cmake-commands.7.rst 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. .. cmake-manual-description: CMake Language Command Reference
  2. cmake-commands(7)
  3. *****************
  4. .. only:: html or latex
  5. .. contents::
  6. Normal Commands
  7. ===============
  8. These commands may be used freely in CMake projects.
  9. .. toctree::
  10. :maxdepth: 1
  11. /command/add_compile_options
  12. /command/add_custom_command
  13. /command/add_custom_target
  14. /command/add_definitions
  15. /command/add_dependencies
  16. /command/add_executable
  17. /command/add_library
  18. /command/add_subdirectory
  19. /command/add_test
  20. /command/aux_source_directory
  21. /command/break
  22. /command/build_command
  23. /command/cmake_host_system_information
  24. /command/cmake_minimum_required
  25. /command/cmake_policy
  26. /command/configure_file
  27. /command/create_test_sourcelist
  28. /command/define_property
  29. /command/elseif
  30. /command/else
  31. /command/enable_language
  32. /command/enable_testing
  33. /command/endforeach
  34. /command/endfunction
  35. /command/endif
  36. /command/endmacro
  37. /command/endwhile
  38. /command/execute_process
  39. /command/export
  40. /command/file
  41. /command/find_file
  42. /command/find_library
  43. /command/find_package
  44. /command/find_path
  45. /command/find_program
  46. /command/fltk_wrap_ui
  47. /command/foreach
  48. /command/function
  49. /command/get_cmake_property
  50. /command/get_directory_property
  51. /command/get_filename_component
  52. /command/get_property
  53. /command/get_source_file_property
  54. /command/get_target_property
  55. /command/get_test_property
  56. /command/if
  57. /command/include_directories
  58. /command/include_external_msproject
  59. /command/include_regular_expression
  60. /command/include
  61. /command/install
  62. /command/link_directories
  63. /command/list
  64. /command/load_cache
  65. /command/load_command
  66. /command/macro
  67. /command/mark_as_advanced
  68. /command/math
  69. /command/message
  70. /command/option
  71. /command/project
  72. /command/qt_wrap_cpp
  73. /command/qt_wrap_ui
  74. /command/remove_definitions
  75. /command/return
  76. /command/separate_arguments
  77. /command/set_directory_properties
  78. /command/set_property
  79. /command/set
  80. /command/set_source_files_properties
  81. /command/set_target_properties
  82. /command/set_tests_properties
  83. /command/site_name
  84. /command/source_group
  85. /command/string
  86. /command/target_compile_definitions
  87. /command/target_compile_options
  88. /command/target_include_directories
  89. /command/target_link_libraries
  90. /command/target_sources
  91. /command/try_compile
  92. /command/try_run
  93. /command/unset
  94. /command/variable_watch
  95. /command/while
  96. Deprecated Commands
  97. ===================
  98. These commands are available only for compatibility with older
  99. versions of CMake. Do not use them in new code.
  100. .. toctree::
  101. :maxdepth: 1
  102. /command/build_name
  103. /command/exec_program
  104. /command/export_library_dependencies
  105. /command/install_files
  106. /command/install_programs
  107. /command/install_targets
  108. /command/link_libraries
  109. /command/make_directory
  110. /command/output_required_files
  111. /command/remove
  112. /command/subdir_depends
  113. /command/subdirs
  114. /command/use_mangled_mesa
  115. /command/utility_source
  116. /command/variable_requires
  117. /command/write_file
  118. CTest Commands
  119. ==============
  120. These commands are available only in ctest scripts.
  121. .. toctree::
  122. :maxdepth: 1
  123. /command/ctest_build
  124. /command/ctest_configure
  125. /command/ctest_coverage
  126. /command/ctest_empty_binary_directory
  127. /command/ctest_memcheck
  128. /command/ctest_read_custom_files
  129. /command/ctest_run_script
  130. /command/ctest_sleep
  131. /command/ctest_start
  132. /command/ctest_submit
  133. /command/ctest_test
  134. /command/ctest_update
  135. /command/ctest_upload