Don't build CUDA modules stubs by default (use `-DBUILD_CUDA_STUBS=ON` if need them)

pull/2863/head
Andrey Pavlenko 11 years ago
parent 45f21e4f12
commit 724f5e7f19
  1. 1
      CMakeLists.txt
  2. 2
      modules/cuda/CMakeLists.txt
  3. 2
      modules/cudaarithm/CMakeLists.txt
  4. 2
      modules/cudabgsegm/CMakeLists.txt
  5. 2
      modules/cudacodec/CMakeLists.txt
  6. 2
      modules/cudafeatures2d/CMakeLists.txt
  7. 2
      modules/cudafilters/CMakeLists.txt
  8. 2
      modules/cudaimgproc/CMakeLists.txt
  9. 2
      modules/cudaoptflow/CMakeLists.txt
  10. 2
      modules/cudastereo/CMakeLists.txt
  11. 2
      modules/cudawarping/CMakeLists.txt

@ -175,6 +175,7 @@ OCV_OPTION(BUILD_WITH_STATIC_CRT "Enables use of staticaly linked CRT for sta
OCV_OPTION(BUILD_FAT_JAVA_LIB "Create fat java wrapper containing the whole OpenCV library" ON IF NOT BUILD_SHARED_LIBS AND CMAKE_COMPILER_IS_GNUCXX )
OCV_OPTION(BUILD_ANDROID_SERVICE "Build OpenCV Manager for Google Play" OFF IF ANDROID AND ANDROID_SOURCE_TREE )
OCV_OPTION(BUILD_ANDROID_PACKAGE "Build platform-specific package for Google Play" OFF IF ANDROID )
OCV_OPTION(BUILD_CUDA_STUBS "Build CUDA modules stubs when no CUDA SDK" OFF IF (NOT IOS) )
# 3rd party libs
OCV_OPTION(BUILD_ZLIB "Build zlib from source" WIN32 OR APPLE )

@ -1,4 +1,4 @@
if(IOS)
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
ocv_module_disable(cuda)
endif()

@ -1,4 +1,4 @@
if(IOS)
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
ocv_module_disable(cudaarithm)
endif()

@ -1,4 +1,4 @@
if(IOS)
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
ocv_module_disable(cudabgsegm)
endif()

@ -1,4 +1,4 @@
if(IOS OR APPLE)
if(IOS OR APPLE OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
ocv_module_disable(cudacodec)
endif()

@ -1,4 +1,4 @@
if(IOS)
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
ocv_module_disable(cudafeatures2d)
endif()

@ -1,4 +1,4 @@
if(IOS)
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
ocv_module_disable(cudafilters)
endif()

@ -1,4 +1,4 @@
if(IOS)
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
ocv_module_disable(cudaimgproc)
endif()

@ -1,4 +1,4 @@
if(IOS)
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
ocv_module_disable(cudaoptflow)
endif()

@ -1,4 +1,4 @@
if(IOS)
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
ocv_module_disable(cudastereo)
endif()

@ -1,4 +1,4 @@
if(IOS)
if(IOS OR (NOT HAVE_CUDA AND NOT BUILD_CUDA_STUBS))
ocv_module_disable(cudawarping)
endif()

Loading…
Cancel
Save