[CMake] RE: Re: changing object file extension from ".o"
Maik Beckmann
maikbeckmann at gmx.de
Wed Nov 7 17:22:41 EST 2007
Am Mittwoch 07 November 2007 22:13:32 schrieb Matthew McCormick:
>
> I'm trying to work with a compiler where you cannot specify the object
> extension, the Matlab mex (pseudo) compiler.
> I tried this,
>
> $ CMAKE_C_OUTPUT_EXTENSION=".obj" CMAKE_CXX_OUTPUT_EXTENSION=".obj" ccmake
> ../convert_visualsonics_2_mat_src/
>
> but it didn't work.
I'm coded a bunch of result file parsers (using spirit/spirit2) and connected
them to Matlab via mex files (*.mexw32 at windows).
The mex frontend is IMHO a very handy thing for very simple cases where the an
algorithm is contained in one sourcefile without any external dependencies. I
never really used it, because I never had this simple cases ;)
I'm using mingw(sometimes msvc) and CMake for this and I can post an simple
example if you want me to. Its a little tricky, since there are name clashes
between the libs in Matlab's library-dir and gcc's own libs (i.e libm).
My access to Matlab is limited to Windows, so I can't provide a general
solution.
Regards,
Maik Beckmann
More information about the CMake
mailing list