build GAMMA using cmake