summaryrefslogtreecommitdiffstats
path: root/Help/manual/cmake-commands.7.rst
blob: c916f77368ec8ca775104e63698e66a8a6a6942c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
.. cmake-manual-description: CMake Language Command Reference

cmake-commands(7)
*****************

.. only:: html

   .. contents::

Normal Commands
===============

These commands may be used freely in CMake projects.

.. toctree::
   :maxdepth: 1

   /command/add_compile_options
   /command/add_custom_command
   /command/add_custom_target
   /command/add_definitions
   /command/add_dependencies
   /command/add_executable
   /command/add_library
   /command/add_subdirectory
   /command/add_test
   /command/aux_source_directory
   /command/break
   /command/build_command
   /command/cmake_host_system_information
   /command/cmake_minimum_required
   /command/cmake_policy
   /command/configure_file
   /command/continue
   /command/create_test_sourcelist
   /command/define_property
   /command/elseif
   /command/else
   /command/enable_language
   /command/enable_testing
   /command/endforeach
   /command/endfunction
   /command/endif
   /command/endmacro
   /command/endwhile
   /command/execute_process
   /command/export
   /command/file
   /command/find_file
   /command/find_library
   /command/find_package
   /command/find_path
   /command/find_program
   /command/fltk_wrap_ui
   /command/foreach
   /command/function
   /command/get_cmake_property
   /command/get_directory_property
   /command/get_filename_component
   /command/get_property
   /command/get_source_file_property
   /command/get_target_property
   /command/get_test_property
   /command/if
   /command/include_directories
   /command/include_external_msproject
   /command/include_regular_expression
   /command/include
   /command/install
   /command/link_directories
   /command/link_libraries
   /command/list
   /command/load_cache
   /command/load_command
   /command/macro
   /command/mark_as_advanced
   /command/math
   /command/message
   /command/option
   /command/project
   /command/qt_wrap_cpp
   /command/qt_wrap_ui
   /command/remove_definitions
   /command/return
   /command/separate_arguments
   /command/set_directory_properties
   /command/set_property
   /command/set
   /command/set_source_files_properties
   /command/set_target_properties
   /command/set_tests_properties
   /command/site_name
   /command/source_group
   /command/string
   /command/target_compile_definitions
   /command/target_compile_features
   /command/target_compile_options
   /command/target_include_directories
   /command/target_link_libraries
   /command/target_sources
   /command/try_compile
   /command/try_run
   /command/unset
   /command/variable_watch
   /command/while

Deprecated Commands
===================

These commands are available only for compatibility with older
versions of CMake.  Do not use them in new code.

.. toctree::
   :maxdepth: 1

   /command/build_name
   /command/exec_program
   /command/export_library_dependencies
   /command/install_files
   /command/install_programs
   /command/install_targets
   /command/make_directory
   /command/output_required_files
   /command/remove
   /command/subdir_depends
   /command/subdirs
   /command/use_mangled_mesa
   /command/utility_source
   /command/variable_requires
   /command/write_file

.. _`CTest Commands`:

CTest Commands
==============

These commands are available only in ctest scripts.

.. toctree::
   :maxdepth: 1

   /command/ctest_build
   /command/ctest_configure
   /command/ctest_coverage
   /command/ctest_empty_binary_directory
   /command/ctest_memcheck
   /command/ctest_read_custom_files
   /command/ctest_run_script
   /command/ctest_sleep
   /command/ctest_start
   /command/ctest_submit
   /command/ctest_test
   /command/ctest_update
   /command/ctest_upload