summaryrefslogtreecommitdiffstats
path: root/Help/command/install_targets.rst
blob: 9355f8d532a90924fdc7e8994b7695b0dabf76be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.

::

  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.