[CMake] Generating include files
Michael Ellery
mellery451 at gmail.com
Fri May 19 19:10:25 EDT 2017
> On May 19, 2017, at 3:48 PM, Urs Thuermann <urs at isnogud.escape.de> wrote:
>
> Craig Scott <craig.scott at crascit.com> writes:
>
>> A bit of a long-shot, have you tried generating the file with the extension
>> .h instead of .c? That might allow it to be picked up by the dependency
>> scanner (I don't know if it treats file extensions differently). Also, the
>> add_custom_command(OUTPUT...) call needs to be in the same
>> CMakeLists.txt
>
> No, I have tried that before in several variations, and nothing
> worked.
>
Here:
https://github.com/mellery451/gen_header
works for with me with makefile generator.
-Mike
More information about the CMake
mailing list