Adding cmake mode.