cmake based shared library linking