You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.5 KiB
36 lines
1.5 KiB
macro (add_cuda_test_macro name)
|
|
add_test_macro("${name}" ${ARGN})
|
|
set_property(TEST "${name}" APPEND
|
|
PROPERTY LABELS "CUDA")
|
|
endmacro ()
|
|
|
|
add_cuda_test_macro(Cuda.ConsumeCompileFeatures CudaConsumeCompileFeatures)
|
|
add_cuda_test_macro(Cuda.CXXStandardSetTwice CXXStandardSetTwice)
|
|
add_cuda_test_macro(Cuda.ObjectLibrary CudaObjectLibrary)
|
|
add_cuda_test_macro(Cuda.MixedStandardLevels1 MixedStandardLevels1)
|
|
add_cuda_test_macro(Cuda.MixedStandardLevels2 MixedStandardLevels2)
|
|
add_cuda_test_macro(Cuda.MixedStandardLevels3 MixedStandardLevels3)
|
|
add_cuda_test_macro(Cuda.MixedStandardLevels4 MixedStandardLevels4)
|
|
add_cuda_test_macro(Cuda.MixedStandardLevels5 MixedStandardLevels5)
|
|
add_cuda_test_macro(Cuda.NotEnabled CudaNotEnabled)
|
|
add_cuda_test_macro(Cuda.SeparableCompCXXOnly SeparableCompCXXOnly)
|
|
add_cuda_test_macro(Cuda.Toolkit Toolkit)
|
|
add_cuda_test_macro(Cuda.IncludePathNoToolkit IncludePathNoToolkit)
|
|
add_cuda_test_macro(Cuda.SharedRuntimePlusToolkit SharedRuntimePlusToolkit)
|
|
|
|
# Separable compilation is currently only supported on NVCC. Disable tests
|
|
# using it for other compilers.
|
|
if(CMake_TEST_CUDA AND NOT CMake_TEST_CUDA STREQUAL "Clang")
|
|
add_cuda_test_macro(Cuda.Complex CudaComplex)
|
|
add_cuda_test_macro(Cuda.ProperDeviceLibraries ProperDeviceLibraries)
|
|
add_cuda_test_macro(Cuda.ProperLinkFlags ProperLinkFlags)
|
|
endif()
|
|
|
|
# The CUDA only ships the shared version of the toolkit libraries
|
|
# on windows
|
|
if(NOT WIN32)
|
|
add_cuda_test_macro(Cuda.StaticRuntimePlusToolkit StaticRuntimePlusToolkit)
|
|
endif()
|
|
|
|
add_cuda_test_macro(Cuda.WithC CudaWithC)
|