Commit 6ca0aa47 authored by Rok Mandeljc's avatar Rok Mandeljc

matlab/CMakeLists.txt: add CMAKE_BINARY_DIR to MEX_INCLUDE_DIRS

Otherwise we cannot find opencv2/opencv_modules.hpp, which is
located directly inside the CMAKE_BINARY_DIR.
parent ac5ffe31
......@@ -104,6 +104,7 @@ set(HDR_PARSER_PATH ${CMAKE_SOURCE_DIR}/modules/python/src2)
set(RST_PARSER_PATH ${CMAKE_SOURCE_DIR}/modules/java/generator)
# set mex compiler options
prepend("-I" MEX_INCLUDE_DIRS ${CMAKE_BINARY_DIR})
prepend("-I" MEX_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include)
if (MSVC)
prepend("-L" MEX_LIB_DIR ${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment