• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1export_library_dependencies
2---------------------------
3
4Disallowed since version 3.0.  See CMake Policy :policy:`CMP0033`.
5
6Use :command:`install(EXPORT)` or :command:`export` command.
7
8This command generates an old-style library dependencies file.
9Projects requiring CMake 2.6 or later should not use the command.  Use
10instead the :command:`install(EXPORT)` command to help export targets from an
11installation tree and the :command:`export` command to export targets from a
12build tree.
13
14The old-style library dependencies file does not take into account
15per-configuration names of libraries or the
16:prop_tgt:`LINK_INTERFACE_LIBRARIES` target property.
17
18::
19
20  export_library_dependencies(<file> [APPEND])
21
22Create a file named ``<file>`` that can be included into a CMake listfile
23with the INCLUDE command.  The file will contain a number of SET
24commands that will set all the variables needed for library dependency
25information.  This should be the last command in the top level
26CMakeLists.txt file of the project.  If the ``APPEND`` option is
27specified, the SET commands will be appended to the given file instead
28of replacing it.
29