1link_libraries
2--------------
3
4Link libraries to all targets added later.
5
6.. code-block:: cmake
7
8  link_libraries([item1 [item2 [...]]]
9                 [[debug|optimized|general] <item>] ...)
10
11Specify libraries or flags to use when linking any targets created later in
12the current directory or below by commands such as :command:`add_executable`
13or :command:`add_library`.  See the :command:`target_link_libraries` command
14for meaning of arguments.
15
16.. note::
17  The :command:`target_link_libraries` command should be preferred whenever
18  possible.  Library dependencies are chained automatically, so directory-wide
19  specification of link libraries is rarely needed.
20