[SE] Fix config bug with CUDA tests

Summary:
It turns out CMake errors out if a processed directory contains source
files that are not used. This was causing an error with the CUDATest.cpp
file when configuring StreamExecutor with the CUDA platform disabled.

Moving CUDATest.cpp to its own directory fixes this problem.

Reviewers: jlebar, jprice

Subscribers: beanz, mgorny, jlebar, parallel_libs-commits

Differential Revision: https://reviews.llvm.org/D24618

llvm-svn: 281654
GitOrigin-RevId: 9fc16d4e11aa3ebf26494b2d0e1c4952ead8909e
diff --git a/streamexecutor/unittests/CoreTests/CMakeLists.txt b/streamexecutor/unittests/CoreTests/CMakeLists.txt
index 5a66a66..ffc3371 100644
--- a/streamexecutor/unittests/CoreTests/CMakeLists.txt
+++ b/streamexecutor/unittests/CoreTests/CMakeLists.txt
@@ -1,5 +1,5 @@
 if(STREAM_EXECUTOR_ENABLE_CUDA_PLATFORM)
-    set(CUDA_TEST_SOURCES CUDATest.cpp)
+    set(CUDA_TEST_SOURCES cuda/CUDATest.cpp)
 endif()
 
 add_se_unittest(
diff --git a/streamexecutor/unittests/CoreTests/CUDATest.cpp b/streamexecutor/unittests/CoreTests/cuda/CUDATest.cpp
similarity index 100%
rename from streamexecutor/unittests/CoreTests/CUDATest.cpp
rename to streamexecutor/unittests/CoreTests/cuda/CUDATest.cpp