Add CMake support for cuDNN.