install_targets.rst 645 B

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