[Cmake] How to use info->CAPI->AddDefinition ?

Andy Cedilnik andy . cedilnik at kitware . com
31 Oct 2003 08:43:11 -0500


Hi Jean,

The AddDefinition in capi is the same as SET(FOO bar) in CMake. It is
not the same as ADD_DEFINITION(...). 

Also, you may want to use AddCustomCommandToOutput and
AddCustomCommandToTarget instead of AddCustomCommand. Their usage is
much simpler.

			Andy

On Fri, 2003-10-31 at 08:25, Jean-Francois LECOMTE wrote:
> Yes, but i would like to have it in the generated Makefile ;o))  So far,
> it's not the case for me !
> 
> Other commands like :
> info->CAPI->AddSource( mf, xcd->WrapFiles[i] );
>  info->CAPI->AddCustomCommand(mf, xwi_source, cmd, 
> 				   nargs, args, 
> 				   1, &cmd, 
> 				   n_output, output, 
> 				   xcd->library_name );
> 
> do not produce any line in Makefile too !