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
d832a576
Commit
d832a576
authored
Oct 17, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More cmake script cleanup
parent
e17b0825
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
CMakeLists.txt
dlib/matlab/CMakeLists.txt
+6
-6
cmake_mex_wrapper
dlib/matlab/cmake_mex_wrapper
+2
-3
No files found.
dlib/matlab/CMakeLists.txt
View file @
d832a576
cmake_minimum_required
(
VERSION 2.8.1
1
)
cmake_minimum_required
(
VERSION 2.8.1
2
)
PROJECT
(
mex_functions
)
include
(
cmake_mex_wrapper
)
include
(
../cmake
)
add_subdirectory
(
.. dlib_build
)
# 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)
add_mex_function
(
example_mex_function dlib
)
add_mex_function
(
example_mex_callback dlib
)
add_mex_function
(
example_mex_struct dlib
)
add_mex_function
(
example_mex_class dlib
)
add_mex_function
(
example_mex_function dlib
::dlib
)
add_mex_function
(
example_mex_callback dlib
::dlib
)
add_mex_function
(
example_mex_struct dlib
::dlib
)
add_mex_function
(
example_mex_class dlib
::dlib
)
dlib/matlab/cmake_mex_wrapper
View file @
d832a576
...
...
@@ -3,7 +3,7 @@
# that additional library dependencies can be added like this: add_mex_function(name lib1 dlib libetc).
# That is, just add more libraries after the name and they will be build into the mex file.
cmake_minimum_required(VERSION 2.8.1
1
)
cmake_minimum_required(VERSION 2.8.1
2
)
set(BUILDING_MATLAB_MEX_FILE true)
set(CMAKE_POSITION_INDEPENDENT_CODE True)
...
...
@@ -57,8 +57,7 @@ INCLUDE_DIRECTORIES("${dlib_matlab_binding_path}")
# Also add dlib to the include search path
INCLUDE_DIRECTORIES(${dlib_matlab_binding_path}/../..)
include(${dlib_matlab_binding_path}/../cmake_utils/add_global_compiler_switch.cmake)
add_global_define(MATLAB_MEX_FILE)
add_definitions(-DMATLAB_MEX_FILE)
# Determine the path to our CMakeLists.txt file. This is the file that
# includeded the one you are reading right now. So here we make it so that
...
...
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