link_libraries.rst 524 B

12345678910111213141516
  1. link_libraries
  2. --------------
  3. Deprecated. Use the target_link_libraries() command instead.
  4. Link libraries to all targets added later.
  5. ::
  6. link_libraries(library1 <debug | optimized> library2 ...)
  7. Specify a list of libraries to be linked into any following targets
  8. (typically added with the add_executable or add_library calls). This
  9. command is passed down to all subdirectories. The debug and optimized
  10. strings may be used to indicate that the next library listed is to be
  11. used only for that specific type of build.