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