Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
3da61b25
Commit
3da61b25
authored
Oct 20, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added install_target_output_folder option to matlab cmake scripts.
parent
1d8445cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
CMakeLists.txt
dlib/matlab/CMakeLists.txt
+5
-0
cmake_mex_wrapper
dlib/matlab/cmake_mex_wrapper
+5
-1
No files found.
dlib/matlab/CMakeLists.txt
View file @
3da61b25
...
...
@@ -7,6 +7,11 @@ include(cmake_mex_wrapper)
add_subdirectory
(
.. dlib_build
)
# You can tell cmake where to put the mex files when you run 'make install' by
# setting this variable. The path is relative to this CMakeLists.txt file.
set
(
install_target_output_folder .
)
# Compile the example_mex_function.cpp file and link it to dlib. Note
# that you can give a list of things to link to here. E.g.
# add_mex_function(some_other_mex_function pthread dlib fftw)
...
...
dlib/matlab/cmake_mex_wrapper
View file @
3da61b25
...
...
@@ -93,7 +93,11 @@ MACRO(add_mex_function name )
endif()
set_target_properties(${name} PROPERTIES PREFIX "")
TARGET_LINK_LIBRARIES(${name} ${MATLAB_LIBRARIES} ${ARGN})
install(TARGETS ${name} DESTINATION "${install_dir}")
if (install_target_output_folder)
install(TARGETS ${name} DESTINATION "${install_target_output_folder}")
else()
install(TARGETS ${name} DESTINATION "${install_dir}")
endif()
ENDMACRO()
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