Added cmake support (but untested)