Added cmake necessary cmake flags