INIT_MODULE_SOURCES_opencv_dnn.cmake 541 B

1234567891011
  1. if(NOT (OPENCV_DNN_OPENCL AND HAVE_OPENCL))
  2. message(STATUS "opencv_dnn: filter out ocl4dnn source code")
  3. ocv_list_filterout(OPENCV_MODULE_${the_module}_SOURCES "/ocl4dnn/")
  4. ocv_list_filterout(OPENCV_MODULE_${the_module}_HEADERS "/ocl4dnn/")
  5. endif()
  6. if(NOT (OPENCV_DNN_CUDA AND HAVE_CUDA AND HAVE_CUBLAS AND HAVE_CUDNN))
  7. message(STATUS "opencv_dnn: filter out cuda4dnn source code")
  8. ocv_list_filterout(OPENCV_MODULE_${the_module}_SOURCES "/cuda4dnn/")
  9. ocv_list_filterout(OPENCV_MODULE_${the_module}_HEADERS "/cuda4dnn/")
  10. endif()