Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
ecb50684
Commit
ecb50684
authored
Aug 05, 2013
by
hbristow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Windows-specific configuration lookup for linker paths
parent
dfda79e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
CMakeLists.txt
modules/matlab/CMakeLists.txt
+1
-1
compile.cmake
modules/matlab/compile.cmake
+2
-1
mxarray.hpp
modules/matlab/include/mxarray.hpp
+1
-7
No files found.
modules/matlab/CMakeLists.txt
View file @
ecb50684
...
...
@@ -56,7 +56,7 @@ set(HDR_PARSER_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../python/src2)
# set mex compiler options
prepend
(
"-I"
MEX_INCLUDE_DIRS
${
CMAKE_CURRENT_SOURCE_DIR
}
/include
)
prepend
(
"-L"
MEX_LIB_DIR
${
CMAKE_BINARY_DIR
}
/lib
)
prepend
(
"-L"
MEX_LIB_DIR
${
LIBRARY_OUTPUT_PATH
}
/$
(
Configuration
)
)
prepend
(
"-l"
MEX_LIBS opencv_core
)
set
(
MEX_OPTS -largeArrayDims
)
...
...
modules/matlab/compile.cmake
View file @
ecb50684
...
...
@@ -3,6 +3,7 @@ macro(listify OUT_LIST IN_STRING)
endmacro
()
listify
(
MEX_INCLUDE_DIRS_LIST
${
MEX_INCLUDE_DIRS
}
)
listify
(
MEX_LIBS_LIST
${
MEX_LIBS
}
)
file
(
GLOB SOURCE_FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/src/*.cpp"
)
foreach
(
SOURCE_FILE
${
SOURCE_FILES
}
)
# strip out the filename
...
...
@@ -11,7 +12,7 @@ foreach(SOURCE_FILE ${SOURCE_FILES})
if
(
NOT EXISTS
${
CMAKE_CURRENT_BINARY_DIR
}
/+cv/
${
FILENAME
}
.
${
MATLAB_MEXEXT
}
)
execute_process
(
COMMAND
${
MATLAB_MEX_SCRIPT
}
${
MEX_OPTS
}
"CXXFLAGS=
\$
CXXFLAGS
${
MEX_CXXFLAGS
}
"
${
MEX_INCLUDE_DIRS_LIST
}
${
MEX_LIB_DIR
}
${
MEX_LIBS
}
${
SOURCE_FILE
}
${
MEX_LIB_DIR
}
${
MEX_LIBS
_LIST
}
${
SOURCE_FILE
}
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/+cv
OUTPUT_QUIET
ERROR_VARIABLE FAILED
...
...
modules/matlab/include/mxarray.hpp
View file @
ecb50684
...
...
@@ -144,19 +144,13 @@ namespace Matlab {
static
const
mxClassID
ScalarType
=
mxDOUBLE_CLASS
;
static
std
::
string
ToString
()
{
return
"double"
;
}
};
// size_t
template
<>
class
Traits
<
size_t
>
{
public
:
static
const
mxClassID
ScalarType
=
(
sizeof
(
size_t
)
==
4
)
?
mxUINT32_CLASS
:
mxUINT64_CLASS
;
static
std
::
string
ToString
()
{
return
"size_t"
;
}
};
// char
template
<>
class
Traits
<
char
>
{
public
:
static
const
mxClassID
ScalarType
=
mxCHAR_CLASS
;
static
std
::
string
ToString
()
{
return
"char"
;
}
};
//
char
//
inherited type
template
<>
class
Traits
<
Matlab
::
InheritType
>
{
public
:
static
std
::
string
ToString
()
{
return
"Inherited type"
;
}
...
...
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