Hello,
In my C++ program I want to auto-generate a header ( .h ) file, which is
included in most sources. I use ADD_CUSTOM_COMMAND to generate it, but I
don't know how to neatly write the dependency to it.
I could use ADD_DEPENDENCY to add the generated header to all final targets,
but it will
Pacesie wrote:
Hello,
In my C++ program I want to auto-generate a header ( .h ) file, which is
included in most sources. I use ADD_CUSTOM_COMMAND to generate it, but I
don't know how to neatly write the dependency to it.
Add the .h file as a source file of the target that uses it.
-Bill
On Jan 10, 2008 11:50 PM, Bill Hoffman [EMAIL PROTECTED] wrote:
Pacesie wrote:
Hello,
In my C++ program I want to auto-generate a header ( .h ) file, which is
included in most sources. I use ADD_CUSTOM_COMMAND to generate it, but I
don't know how to neatly write the dependency to it.
On 2008-01-11 08:05+1100 Pacesie wrote:
If I want to generate document files as part of the build, should I first
create an ADD_CUSTOM_TARGET then have it depends on the generated files
defined by ADD_CUSTOM_COMMAND? ( It would be nice if file generation can be
defined as a target so the extra