Added cmake file to build library (not examples)