1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-16 22:35:51 +08:00

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.
This commit is contained in:
Rok Mandeljc
2014-12-26 15:24:18 +01:00
parent ac5ffe3128
commit 6ca0aa4784

View File

@@ -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})