MantisBT - CMake
View Issue Details
0009240CMakeModulespublic2009-07-07 08:552016-06-10 14:30
Matt McCormick 
Bill Hoffman 
normalfeatureN/A
closedmoved 
CMake-2-6 
 
0009240: Support for Matlab Mex
For more information, see http://www.cmake.org/Wiki/CMake:MatlabMex [^]
No tags attached.
patch Add-support-for-making-Matlab-mex-files.patch (6,730) 2009-07-07 08:55
https://public.kitware.com/Bug/file/2357/Add-support-for-making-Matlab-mex-files.patch
Issue History
2009-07-07 08:55Matt McCormickNew Issue
2009-07-07 08:55Matt McCormickFile Added: Add-support-for-making-Matlab-mex-files.patch
2009-09-14 15:03Bill HoffmanStatusnew => assigned
2009-09-14 15:03Bill HoffmanAssigned To => Bill Hoffman
2011-05-23 02:49Tom VercauterenNote Added: 0026567
2012-04-15 06:16TImtimNote Added: 0029159
2012-07-12 06:06Janick MartinezNote Added: 0030042
2015-05-18 03:45Raffi EnficiaudNote Added: 0038759
2016-06-10 14:27Kitware RobotNote Added: 0041577
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0026567)
Tom Vercauteren   
2011-05-23 02:49   
This issue is related to bug 0008207
http://public.kitware.com/Bug/view.php?id=8207 [^]
(0029159)
TImtim   
2012-04-15 06:16   
Thanks a lot for this patch. It'd be really awesome if this could find its way into CMake per default.

Custom CFLAGS/CXXFLAGS can be handed to the mex script just like from the Matlab prompt by using the following directives (here the -std=c++0x flag is passed to the compiler as an example):

SET(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "CFLAGS=\"\\$$CFLAGS -std=c++0x\"")
SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "CXXFLAGS=\"\\$$CXXFLAGS -std=c++0x\"")
(0030042)
Janick Martinez   
2012-07-12 06:06   
I'd love to see this feature in an official version, too! Its working very well for me.
(0038759)
Raffi Enficiaud   
2015-05-18 03:45   
The refactored version of FindMatlab (current master, upcoming v3.3) allows to add a mex file and emulates the mex compiler.
(0041577)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.