https://github.com/Kitware/CMake
Raw File
Tip revision: bef6a27531dc7ce2da8c89a2182cf6ac54c7886a authored by Brad King on 29 March 2023, 18:19:57 UTC
CMake 3.26.2
Tip revision: bef6a27
install_targets.rst
install_targets
---------------

.. deprecated:: 3.0

  Use the :command:`install(TARGETS)` command instead.

This command has been superseded by the :command:`install` command.  It is
provided for compatibility with older CMake code.

.. code-block:: cmake

  install_targets(<dir> [RUNTIME_DIRECTORY dir] target target)

Create rules to install the listed targets into the given directory.
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.
back to top