added cmake build for library.