Compiling against static or shared library

Change-Id: I3fb35e9a49f90b8894f59dde49c90a7c2dd74b0a
This commit is contained in:
Pablo Speciale
2013-03-25 16:40:26 -07:00
parent 619cfe6920
commit 6bcb8d9c30
2 changed files with 16 additions and 0 deletions
+15
View File
@@ -384,3 +384,18 @@ If Ceres was installed in a non-standard path by specifying
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.