.. _section_lib_dependencies:

****************************
Library Dependencies
****************************

Compiling a C++ program that includes OpenEye libraries require
that all the library API's that have been called in the code are
added as dependency in the `CMake` project file. Besides the
explicit set of libraries that are in use, libraries that the
explicit set depends on must also be added as dependency for the
compiling code.  In `Linux`, the list of all dependent libraries
also need to be in proper order of their dependencies.

A dependency diagram of all of the OpenEye C++ libraries are
provided below to help sort out dependencies for any derived
code.

.. figure:: images/dependency-libs.*
   :align:  center
   :width:  400pt

   **Dependency between OpenEye libraries**

The `purple` boxes indicate libraries with direct API exposure,
the `blue` boxes indicate libraries with CUDA support and direct 
API exposure, and the `yellow` boxes indicate libraries that
have no direct API exposure.
