Compiling against static or shared library
Change-Id: I3fb35e9a49f90b8894f59dde49c90a7c2dd74b0a
diff --git a/docs/source/building.rst b/docs/source/building.rst
index 75fbfa0..48027e6 100644
--- a/docs/source/building.rst
+++ b/docs/source/building.rst
@@ -384,3 +384,18 @@
FIND_PACKAGE(Ceres REQUIRED PATHS "/some/where/local/")
Note that this can be used to have multiple versions of Ceres installed.
+
+Compiling against static or shared library
+------------------------------------------
+
+.. code-block:: cmake
+
+ TARGET_LINK_LIBRARIES(helloworld ${CERES_LIBRARIES})
+
+will result in a statically linked binary. Changing this line to
+
+.. code-block:: cmake
+
+ TARGET_LINK_LIBRARIES(helloworld ${CERES_LIBRARIES_SHARED})
+
+will result in a dynamically linked binary.