Add cmake mode config