[CMake] Generated files?

Bill Hoffman bill.hoffman at kitware.com
Fri Jan 30 11:24:06 EST 2015


On 1/30/2015 10:40 AM, Chris Johnson wrote:
> Petr, thanks.  That makes a lot of sense.
>
> Now I am struggling with causing all of these files to be generated when
> I do the default build target, e.g. just "make" in the build directory.
> That is, I want myprog to be compiled, and then all of the files
> processed by it with just one build command. I assume that's possible,
> but have not quite yet been able to make it happen.
Something has to consume the output files.  If you have a custom command 
that produces files, those files have to be part of a target or the 
commands will never get used.

-Bill



More information about the CMake mailing list