Supported shared library on cmake.
Updated the documentation.