init.cmake 690 B

1234567891011121314151617181920
  1. OCV_OPTION(WITH_MATLAB "Include Matlab support (opencv_contrib)" OFF IF (NOT ANDROID AND NOT IOS AND NOT WINRT))
  2. ocv_assert(OPENCV_INITIAL_PASS)
  3. if(WITH_MATLAB OR DEFINED MATLAB_FOUND)
  4. ocv_cmake_hook_append(STATUS_DUMP_EXTRA "${CMAKE_CURRENT_LIST_DIR}/hooks/STATUS_DUMP_EXTRA.cmake")
  5. endif()
  6. # --- Matlab/Octave ---
  7. if(WITH_MATLAB AND NOT DEFINED MATLAB_FOUND)
  8. include(${CMAKE_CURRENT_LIST_DIR}/OpenCVFindMatlab.cmake)
  9. if(NOT MATLAB_FOUND)
  10. message(WARNING "Matlab or compiler (mex) was not found. Disabling Matlab bindings...")
  11. ocv_module_disable(matlab)
  12. endif()
  13. endif()
  14. if(NOT OPENCV_DOCS_INCLUDE_MATLAB)
  15. list(APPEND DOXYGEN_BLACKLIST "matlab")
  16. endif()