Adding cmake mode