Fixed cmake config

* Fixes proper export of libraries
Fixing library export