|
|
@ -23,6 +23,20 @@ |
|
|
|
# them with mex. |
|
|
|
# them with mex. |
|
|
|
# ---------------------------------------------------------------------------- |
|
|
|
# ---------------------------------------------------------------------------- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------- |
|
|
|
|
|
|
|
# Architecture checks |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------- |
|
|
|
|
|
|
|
# make sure we're on a supported architecture with Matlab and python installed |
|
|
|
|
|
|
|
if(APPLE_FRAMEWORK OR ANDROID OR NOT MATLAB_FOUND) |
|
|
|
|
|
|
|
ocv_module_disable(matlab) |
|
|
|
|
|
|
|
return() |
|
|
|
|
|
|
|
elseif (NOT PYTHON_DEFAULT_AVAILABLE) |
|
|
|
|
|
|
|
message(WARNING "A required dependency of the matlab module (Python) was not found. Disabling Matlab bindings...") |
|
|
|
|
|
|
|
ocv_module_disable(matlab) |
|
|
|
|
|
|
|
return() |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# PREPEND |
|
|
|
# PREPEND |
|
|
|
# Given a list of strings IN and a TOKEN, prepend the token to each string |
|
|
|
# Given a list of strings IN and a TOKEN, prepend the token to each string |
|
|
|
# and append to OUT. This is used for passing command line "-I", "-L" and "-l" |
|
|
|
# and append to OUT. This is used for passing command line "-I", "-L" and "-l" |
|
|
@ -44,19 +58,6 @@ macro(WARN_MIXED_PRECISION COMPILER_BITNESS MATLAB_BITNESS) |
|
|
|
message(WARNING ${MSG}) |
|
|
|
message(WARNING ${MSG}) |
|
|
|
endmacro() |
|
|
|
endmacro() |
|
|
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------- |
|
|
|
|
|
|
|
# Architecture checks |
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------- |
|
|
|
|
|
|
|
# make sure we're on a supported architecture with Matlab and python installed |
|
|
|
|
|
|
|
if (IOS OR ANDROID OR NOT MATLAB_FOUND) |
|
|
|
|
|
|
|
ocv_module_disable(matlab) |
|
|
|
|
|
|
|
return() |
|
|
|
|
|
|
|
elseif (NOT PYTHON_DEFAULT_AVAILABLE) |
|
|
|
|
|
|
|
message(WARNING "A required dependency of the matlab module (PythonLibs) was not found. Disabling Matlab bindings...") |
|
|
|
|
|
|
|
ocv_module_disable(matlab) |
|
|
|
|
|
|
|
return() |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If the user built OpenCV as X-bit, but they have a Y-bit version of Matlab, |
|
|
|
# If the user built OpenCV as X-bit, but they have a Y-bit version of Matlab, |
|
|
|
# attempting to link to OpenCV during binding generation will fail, since |
|
|
|
# attempting to link to OpenCV during binding generation will fail, since |
|
|
|