1if(IOS OR WINRT OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS)) 2 ocv_module_disable(cudaarithm) 3endif() 4 5set(the_description "CUDA-accelerated Operations on Matrices") 6 7ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 /wd4324 /wd4512 -Wundef -Wmissing-declarations -Wshadow) 8 9ocv_add_module(cudaarithm opencv_core OPTIONAL opencv_cudev) 10 11ocv_module_include_directories() 12ocv_glob_module_sources() 13 14set(extra_libs "") 15 16if(HAVE_CUBLAS) 17 list(APPEND extra_libs ${CUDA_cublas_LIBRARY}) 18endif() 19 20if(HAVE_CUFFT) 21 list(APPEND extra_libs ${CUDA_cufft_LIBRARY}) 22endif() 23 24ocv_create_module(${extra_libs}) 25 26ocv_add_accuracy_tests(DEPENDS_ON opencv_imgproc) 27ocv_add_perf_tests(DEPENDS_ON opencv_imgproc) 28