Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
eos
Commits
5ae4c184
Commit
5ae4c184
authored
Dec 03, 2016
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added INSTALL target for Matlab bindings
parent
8910e953
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
matlab/CMakeLists.txt
matlab/CMakeLists.txt
+6
-2
No files found.
matlab/CMakeLists.txt
View file @
5ae4c184
...
...
@@ -9,13 +9,17 @@ matlab_add_mex(
NAME eos_fitting
#[EXECUTABLE | MODULE | SHARED] # SHARED is the default.
SRC +eos/+fitting/private/fitting.cpp
#[OUTPUT_NAME output_name]
+eos/+fitting/fit_shape_and_pose.m
#[DOCUMENTATION file.txt]
OUTPUT_NAME fitting
#[OUTPUT_NAME output_name]
# DOCUMENTATION +eos/+fitting/fit_shape_and_pose.m # doesn't work - wrong path probably. But it renames the file to fitting.m, so not what we want anyway.
#[LINK_TO target1 target2 ...] # OpenCV etc?
#[...]
)
target_include_directories
(
eos_fitting PRIVATE
${
CMAKE_SOURCE_DIR
}
/3rdparty/mexplus/include
${
CMAKE_SOURCE_DIR
}
/matlab/include
)
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/matlab/include DESTINATION matlab
)
install
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
/matlab/+eos DESTINATION matlab PATTERN
"*.cpp"
EXCLUDE
)
install
(
TARGETS eos_fitting DESTINATION matlab/+eos/+fitting/private
)
# Todo: Look at opencv mex... eg Rect, the .c file. Do they do all the dispatching in mexFunc()?
# Also this may have wrapping for std::vector<T>: https://github.com/kyamagu/mexopencv/blob/master/include/MxArray.hpp
\ No newline at end of file
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