cmake: only build GPU library if CUDA is present

4 jobs for feature/gpu in 49 seconds (queued for 3 seconds)