build shared library with cmake