~paparazzi-uav/paparazzi/v5.0-manual

« back to all changes in this revision

Viewing changes to sw/ext/opencv_bebop/opencv/modules/cudacodec/CMakeLists.txt

  • Committer: Paparazzi buildbot
  • Date: 2016-05-18 15:00:29 UTC
  • Revision ID: felix.ruess+docbot@gmail.com-20160518150029-e8lgzi5kvb4p7un9
Manual import commit 4b8bbb730080dac23cf816b98908dacfabe2a8ec from v5.0 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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()