mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
522 B
14 lines
522 B
macro(listify OUT_LIST IN_STRING) |
|
string(REPLACE " " ";" ${OUT_LIST} ${IN_STRING}) |
|
endmacro() |
|
|
|
listify(MEX_INCLUDE_DIRS_LIST ${MEX_INCLUDE_DIRS}) |
|
file(GLOB SOURCE_FILES "${CMAKE_CURRENT_BINARY_DIR}/src/*.cpp") |
|
foreach(SOURCE_FILE ${SOURCE_FILES}) |
|
# compile the source file using mex |
|
execute_process( |
|
COMMAND ${MATLAB_MEX_SCRIPT} ${MEX_OPTS} ${MEX_INCLUDE_DIRS_LIST} |
|
${MEX_LIB_DIR} ${MEX_LIBS} ${SOURCE_FILE} |
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/src |
|
) |
|
endforeach()
|
|
|