add cmake file for building lib