Added modes for cmake, cuda, glsl and rib