<div>Hello. I want to use CMAKE to create mex file for matlab. But i seem to be doing something wrong.</div>
<div>I need to specify output as DLL. which i can use ADD_LIBRARY(... MODULE ...) for.</div>
<div>&nbsp;</div>
<div>The problem is that apparently i also need to&nbsp; make sure mexFunction is an exported symbol in the dll.</div>
<div>&nbsp;</div>
<div>The mexFunction is the main function in my dll. And i dont really know how to make CMAKE setup visual studio 8 to do this.</div>
<div>I hope someone can help me.</div>
<div>Many regards<br>&nbsp;</div>