[CMake] help with cmake and corba idl

Alexander Neundorf a.neundorf-work at gmx.net
Tue Jan 18 16:26:03 EST 2011


On Thursday 23 December 2010, Christopher Fernandez wrote:
> Hi, everyone.
>
> I'm want to compile some Corba idl with CMake (for c++ and java), I
> search on the web but I didn't find much help. I want to know if any of
> you have any guide or can tell me how to do it.

You will probably need add_custom_command() with a command which processes the 
idl-files to C++, put the generated source files in the list of source files 
for your target.
If you have more than just a few idl-files, you will probably want to put this 
add_custom_command() into a macro which you can call with a list of 
idl-files, which are iterated inside the macro.

Alex


More information about the CMake mailing list