[CMake] Cmake + Matlab mex

Wojciech Jarosz wjarosz at ucsd.edu
Mon Oct 16 14:28:32 EDT 2006


I saw a couple questions regarding this in the archives from a few 
years, but no answers.

I am using CMake for my project, and would now like to write a matlab 
mex function which would use my C/C++ code base. I'd like to have the 
CMake infrastructure figure out the correct -I,-L,-l flags to pass to 
the mex compiler so everything compiles/links correctly. Has anyone done 
this before? I'm primarily using Linux.

Thanks!
-wojciech


More information about the CMake mailing list