[CMake] Custom command : generate a cxx file wich need to be compile after

William A. Hoffman billlist at nycap.rr.com
Wed Aug 30 10:54:37 EDT 2006


At 10:47 AM 8/30/2006, Xavier Larrode wrote:
>Actually i don't have the sources of the generator, it's another library wich is doing that, so i can't make a new target.
>SO i did an EXEC_PROGRAM to generate it before scanning files, but i don't know how to generate it after a make clean wich have to erase it.
>Any idea ?

That is not what you want to do.  You still want to use a custom command.
Just use the already built executable in the command. 

-Bill



More information about the CMake mailing list