Use the BUILD_SHARED_LIBS cmake option to build share library. Default, a static library is build to enable all internal test that use private API.