install_targets.rst 634 B

1234567891011121314151617
  1. install_targets
  2. ---------------
  3. Deprecated. Use the :command:`install(TARGETS)` command instead.
  4. This command has been superceded by the :command:`install` command. It is
  5. provided for compatibility with older CMake code.
  6. ::
  7. install_targets(<dir> [RUNTIME_DIRECTORY dir] target target)
  8. Create rules to install the listed targets into the given directory.
  9. The directory ``<dir>`` is relative to the installation prefix, which is
  10. stored in the variable :variable:`CMAKE_INSTALL_PREFIX`. If
  11. ``RUNTIME_DIRECTORY`` is specified, then on systems with special runtime
  12. files (Windows DLL), the files will be copied to that directory.