Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
c8fdb2c1
Commit
c8fdb2c1
authored
Jun 23, 2013
by
hbristow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed build locations so that the matlab module can be used in-place, without having to install
parent
b0285d92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
modules/matlab/CMakeLists.txt
+2
-2
compile.cmake
modules/matlab/compile.cmake
+1
-1
No files found.
modules/matlab/CMakeLists.txt
View file @
c8fdb2c1
...
...
@@ -181,7 +181,7 @@ add_dependencies(${the_module} ${the_module}_sources ${${the_module}_ACTUAL_DEPS
file
(
GLOB MATLAB_FUNCTIONS
"
${
CMAKE_CURRENT_BINARY_DIR
}
/src/*.
${
MATLAB_MEXEXT
}
"
)
file
(
GLOB MATLAB_CLASSES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/+cv/*.m"
)
file
(
GLOB MATLAB_PRIVATE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/src/private/*.
${
MATLAB_MEXEXT
}
"
)
install
(
DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/
src
/
install
(
DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/
+cv
/
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/matlab/+cv
FILES_MATCHING PATTERN
"*.
${
MATLAB_MEXEXT
}
"
)
...
...
@@ -189,7 +189,7 @@ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/+cv/
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/matlab/+cv
FILES_MATCHING PATTERN
"*.m"
)
install
(
DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/
src
/private/
install
(
DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/
+cv
/private/
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/matlab/+cv/private
FILES_MATCHING PATTERN
"*.
${
MATLAB_MEXEXT
}
"
)
modules/matlab/compile.cmake
View file @
c8fdb2c1
...
...
@@ -11,7 +11,7 @@ foreach(SOURCE_FILE ${SOURCE_FILES})
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
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/
+cv
ERROR_VARIABLE FAILED
)
# TODO: If a mex file fails to cmpile, should we error out?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment