Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
18711b55
Commit
18711b55
authored
Jun 29, 2018
by
Joel Nelson
Browse files
detect file extension of mex function
parent
30ba39c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
dlib/matlab/cmake_mex_wrapper
dlib/matlab/cmake_mex_wrapper
+8
-1
No files found.
dlib/matlab/cmake_mex_wrapper
View file @
18711b55
...
...
@@ -70,7 +70,14 @@ INCLUDE(InstallRequiredSystemLibraries)
MACRO(add_mex_function name )
ADD_LIBRARY(${name} MODULE ${name}.cpp )
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${name}.C")
ADD_LIBRARY(${name} MODULE ${name}.C)
elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${name}.c")
ADD_LIBRARY(${name} MODULE ${name}.c)
else()
ADD_LIBRARY(${name} MODULE ${name}.cpp )
endif()
target_compile_definitions(${name} PRIVATE -DMEX_FILENAME=${name})
if (UNIX)
# Doing this prevents our mex function from exporting any symbols
...
...
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