[Cmake] patching executable

Phil Pritchett p.pritchett at 2d3.com
Thu Jun 27 07:44:09 EDT 2002


Cheers Bill,
This is what I was trying to do originally but I didn't have the 
CMAKE_CUSTOM_RULE_CODE  string in my windows templates. Doh.
Is there another macro that will tell me the name of the executable produced
by the ADD_EXECUTABLE macro - windows adds .exe to the name. 

Thanks,
Phil


> -----Original Message-----
> From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
> Sent: Wednesday, June 26, 2002 2:08 PM
> To: Phil Pritchett; Cmake Mailing List (E-mail)
> Subject: Re: [Cmake] patching executable
> 
> 
> I think you want to use the ADD_CUSTOM_COMMAND:
> 
> It will be something like this:
> 
> ADD_EXECUTABLE(YourExecutable sources...)
> ADD_CUSTOM_COMMAND ( 
> COMMAND YourExecutable
> ARGS ArgumentsForYourExecutable
> TARGET YourExecutable)
> 
> 
> -Bill
> 
> 
> At 01:00 PM 6/26/2002 +0100, Phil Pritchett wrote:
> >Could someone advise me on the best way to use cmake to 
> automatically run an
> >executable (also created by cmake) on another executable 
> every time it is
> >compiled ? Not sure if I should be creating a second target or not. 
> >
> >Cheers,
> >Phil
> >
> >This e-mail, and any attachment, is confidential. If you 
> have received it in
> >error, please delete it from your system, do not use or disclose the
> >information in any way, and notify me immediately.
> >_______________________________________________
> >Cmake mailing list
> >Cmake at public.kitware.com
> >http://public.kitware.com/mailman/listinfo/cmake 
> 

This e-mail, and any attachment, is confidential. If you have received it in
error, please delete it from your system, do not use or disclose the
information in any way, and notify me immediately.



More information about the CMake mailing list