Thanks a lot Petr, that solution works perfectly.
Regards,
--
Tarjei
On 8 May 2014 11:30, Petr Kmoch wrote:
> Hi Tarjei.
>
> add_custom_command() has a DEPENDS argument where you can list any number
> of files which will act as dependencies for the custom command. So you
> could extend your cu
Hi Tarjei.
add_custom_command() has a DEPENDS argument where you can list any number
of files which will act as dependencies for the custom command. So you
could extend your custom command like this:
add_custom_command(
OUTPUT ... #as before
COMMAND ... #as before
MAIN_DEPENDENCY a.idl
DE
In our project we are generating code from CORBA IDL files by adding a
custom command that generates C++ code from the IDL files and a library
target that depends on the generated output. This works as expected,
however IDL supports include directives which are (naturally) not picked up
as dependen