<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'>Hello All.<br><br>I wrote some cmake macros to generate some header files. The macros read text files and generate different headers based on an option the user determines.<br><br>Now since these are macros, the headers are generated at cmake time. I think what I really want, is for these header files to be generated at compile time, with a dependency on the text files, so that if I modify the text files in between compiles, the build system will know it has to regenerate the header files.<br><br>So, my question then is, can I somehow make my cmake macro as the COMMAND in add_custom_command?<br><br>I suppose the alternative is to rewrite my macros as perl scripts and use those scripts as the COMMAND in add_custom_command...but then I would have a dependance on perl on the build system (not to mention rewriting my macros as
 perl)<br><br>thanks,<br>-=S=-<br><br></td></tr></table><br>