Added library and updated cmake files.