Move gate to cmake directory
Update gate file