Added CMAKE mode