CMakeLists.txt 700 B

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