Commit 5ae4c184 authored by Patrik Huber's avatar Patrik Huber

Added INSTALL target for Matlab bindings

parent 8910e953
...@@ -9,13 +9,17 @@ matlab_add_mex( ...@@ -9,13 +9,17 @@ matlab_add_mex(
NAME eos_fitting NAME eos_fitting
#[EXECUTABLE | MODULE | SHARED] # SHARED is the default. #[EXECUTABLE | MODULE | SHARED] # SHARED is the default.
SRC +eos/+fitting/private/fitting.cpp SRC +eos/+fitting/private/fitting.cpp
#[OUTPUT_NAME output_name] OUTPUT_NAME fitting #[OUTPUT_NAME output_name]
+eos/+fitting/fit_shape_and_pose.m #[DOCUMENTATION file.txt] # 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? #[LINK_TO target1 target2 ...] # OpenCV etc?
#[...] #[...]
) )
target_include_directories(eos_fitting PRIVATE ${CMAKE_SOURCE_DIR}/3rdparty/mexplus/include ${CMAKE_SOURCE_DIR}/matlab/include) 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()? # 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 # 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
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