The cmake option BUILD_SHARED_LIBS is a cmake built-in option
to control if libraries are by default SHARED or STATIC.
For large projects, it is desired to be able to design gtsam as a
shared or static library regardless of the value of BUILD_SHARED_LIBS.
This change is unobtrusive, two new cmake options are created, to
force gtsam to be a shared or static library. If neither option is
set (this is the default), the behavior of gtsam remains unchanged
which is to use BUILD_SHARED_LIBS decision.
Since Eigen 3.3.0, a Config.cmake file is provided, thus no need to rely
on a custom one.
Moreover, the FindEigen3.cmake used in gtsam was erroneously forcing an
include directory when using system version of eigen.
This fixes bug #1297