Add option to build shared library with cmake
Hi @robert-kalmar Can you please rebase your branch and resolve the conflicts? Thank you!
The shared library build correspond to the build rules in bazel for shared library.