Home | History | Annotate | Download | only in cudacodec
      1 if(IOS OR APPLE OR WINRT OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
      2   ocv_module_disable(cudacodec)
      3 endif()
      4 
      5 set(the_description "CUDA-accelerated Video Encoding/Decoding")
      6 
      7 ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 /wd4324 /wd4512 -Wundef -Wshadow)
      8 
      9 ocv_add_module(cudacodec opencv_core opencv_videoio OPTIONAL opencv_cudev)
     10 
     11 ocv_module_include_directories()
     12 ocv_glob_module_sources()
     13 
     14 set(extra_libs "")
     15 
     16 if(HAVE_NVCUVID)
     17   list(APPEND extra_libs ${CUDA_CUDA_LIBRARY} ${CUDA_nvcuvid_LIBRARY})
     18 
     19   if(WIN32)
     20     list(APPEND extra_libs ${CUDA_nvcuvenc_LIBRARY})
     21   endif()
     22 endif()
     23 
     24 ocv_create_module(${extra_libs})
     25 
     26 ocv_add_accuracy_tests()
     27 ocv_add_perf_tests()
     28