2014-08-03 19:52:23 +02:00
|
|
|
install_targets
|
|
|
|
---------------
|
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
.. deprecated:: 3.0
|
|
|
|
|
|
|
|
Use the :command:`install(TARGETS)` command instead.
|
2014-08-03 19:52:23 +02:00
|
|
|
|
2021-09-14 00:13:48 +02:00
|
|
|
This command has been superseded by the :command:`install` command. It is
|
2014-08-03 19:52:23 +02:00
|
|
|
provided for compatibility with older CMake code.
|
|
|
|
|
2023-05-23 16:38:00 +02:00
|
|
|
.. code-block:: cmake
|
2014-08-03 19:52:23 +02:00
|
|
|
|
|
|
|
install_targets(<dir> [RUNTIME_DIRECTORY dir] target target)
|
|
|
|
|
|
|
|
Create rules to install the listed targets into the given directory.
|
2015-11-17 17:22:37 +01:00
|
|
|
The directory ``<dir>`` is relative to the installation prefix, which is
|
|
|
|
stored in the variable :variable:`CMAKE_INSTALL_PREFIX`. If
|
|
|
|
``RUNTIME_DIRECTORY`` is specified, then on systems with special runtime
|
|
|
|
files (Windows DLL), the files will be copied to that directory.
|