cmake/Help/manual/cmake-commands.7.rst

174 lines
4.0 KiB
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
.. cmake-manual-description: CMake Language Command Reference
cmake-commands(7)
*****************
2015-04-27 22:25:09 +02:00
.. only:: html
2014-08-03 19:52:23 +02:00
.. contents::
2017-07-20 19:35:53 +02:00
Scripting Commands
==================
2014-08-03 19:52:23 +02:00
2017-07-20 19:35:53 +02:00
These commands are always available.
2014-08-03 19:52:23 +02:00
.. toctree::
:maxdepth: 1
/command/break
/command/cmake_host_system_information
2020-08-30 11:54:41 +02:00
/command/cmake_language
2014-08-03 19:52:23 +02:00
/command/cmake_minimum_required
2016-03-13 13:35:51 +01:00
/command/cmake_parse_arguments
2014-08-03 19:52:23 +02:00
/command/cmake_policy
/command/configure_file
2015-04-27 22:25:09 +02:00
/command/continue
2014-08-03 19:52:23 +02:00
/command/else
2019-11-11 23:01:05 +01:00
/command/elseif
2014-08-03 19:52:23 +02:00
/command/endforeach
/command/endfunction
/command/endif
/command/endmacro
/command/endwhile
/command/execute_process
/command/file
/command/find_file
/command/find_library
/command/find_package
/command/find_path
/command/find_program
/command/foreach
/command/function
/command/get_cmake_property
/command/get_directory_property
/command/get_filename_component
/command/get_property
2017-07-20 19:35:53 +02:00
/command/if
/command/include
2018-01-26 17:06:56 +01:00
/command/include_guard
2017-07-20 19:35:53 +02:00
/command/list
/command/macro
/command/mark_as_advanced
/command/math
/command/message
/command/option
/command/return
/command/separate_arguments
2019-11-11 23:01:05 +01:00
/command/set
2017-07-20 19:35:53 +02:00
/command/set_directory_properties
/command/set_property
/command/site_name
/command/string
/command/unset
/command/variable_watch
/command/while
Project Commands
================
These commands are available only in CMake projects.
.. toctree::
:maxdepth: 1
2018-08-09 18:06:22 +02:00
/command/add_compile_definitions
2017-07-20 19:35:53 +02:00
/command/add_compile_options
/command/add_custom_command
/command/add_custom_target
/command/add_definitions
/command/add_dependencies
/command/add_executable
/command/add_library
2018-10-28 12:09:07 +01:00
/command/add_link_options
2017-07-20 19:35:53 +02:00
/command/add_subdirectory
/command/add_test
/command/aux_source_directory
/command/build_command
/command/create_test_sourcelist
/command/define_property
/command/enable_language
/command/enable_testing
/command/export
/command/fltk_wrap_ui
2014-08-03 19:52:23 +02:00
/command/get_source_file_property
/command/get_target_property
/command/get_test_property
/command/include_directories
/command/include_external_msproject
/command/include_regular_expression
/command/install
/command/link_directories
2015-04-27 22:25:09 +02:00
/command/link_libraries
2014-08-03 19:52:23 +02:00
/command/load_cache
/command/project
/command/remove_definitions
/command/set_source_files_properties
/command/set_target_properties
/command/set_tests_properties
/command/source_group
/command/target_compile_definitions
2015-04-27 22:25:09 +02:00
/command/target_compile_features
2014-08-03 19:52:23 +02:00
/command/target_compile_options
/command/target_include_directories
2018-10-28 12:09:07 +01:00
/command/target_link_directories
2014-08-03 19:52:23 +02:00
/command/target_link_libraries
2018-10-28 12:09:07 +01:00
/command/target_link_options
2020-02-01 23:06:01 +01:00
/command/target_precompile_headers
2015-04-27 22:25:09 +02:00
/command/target_sources
2014-08-03 19:52:23 +02:00
/command/try_compile
/command/try_run
2017-07-20 19:35:53 +02:00
.. _`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
2014-08-03 19:52:23 +02:00
Deprecated Commands
===================
2019-11-11 23:01:05 +01:00
These commands are deprecated and are only made available to maintain
backward compatibility. The documentation of each command states the
CMake version in which it was deprecated. Do not use these commands
in new code.
2014-08-03 19:52:23 +02:00
.. toctree::
:maxdepth: 1
/command/build_name
/command/exec_program
/command/export_library_dependencies
/command/install_files
/command/install_programs
/command/install_targets
2015-11-17 17:22:37 +01:00
/command/load_command
2014-08-03 19:52:23 +02:00
/command/make_directory
/command/output_required_files
2019-11-11 23:01:05 +01:00
/command/qt_wrap_cpp
/command/qt_wrap_ui
2014-08-03 19:52:23 +02:00
/command/remove
/command/subdir_depends
/command/subdirs
/command/use_mangled_mesa
/command/utility_source
/command/variable_requires
/command/write_file