Added CMake rules to enable CUDA use.