Navigation

  • index
  • next |
  • previous |
  • CMake »
  • 3.0.2 Documentation »
  • cmake-commands(7) »
This documents an old version of CMake. Click here to see the latest release.

link_librariesΒΆ

Deprecated. Use the target_link_libraries() command instead.

Link libraries to all targets added later.

link_libraries(library1 <debug | optimized> library2 ...)

Specify a list of libraries to be linked into any following targets (typically added with the add_executable or add_library calls). This command is passed down to all subdirectories. The debug and optimized strings may be used to indicate that the next library listed is to be used only for that specific type of build.

Previous topic

install_targets

Next topic

make_directory

This Page

  • Show Source

Quick search

Navigation

  • index
  • next |
  • previous |
  • CMake »
  • 3.0.2 Documentation »
  • cmake-commands(7) »
© Copyright 2000-2014 Kitware, Inc.. Created using Sphinx 2.4.4.