added dmg build in cmake