<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 11, 2019 at 9:49 PM Kyle Edwards <<a href="mailto:kyle.edwards@kitware.com">kyle.edwards@kitware.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
You can list them or not list them. CMake will recognize them as header<br>
files and ignore them (not attempt to compile them.) It's a matter of<br>
personal preference. CMake's own CMake script lists them, but there are<br>
plenty of projects that don't and work just fine.</blockquote><div><br></div><div>And it far as IDE generators (Xcode, CodeBlocks etc) go - don't they care about headers?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> Another question - how does cmake know to create the<br>
> dependency between the target and the header file, even when it is<br>
> not listed explicitly?<br>
<br>
It uses GCC's -MD and -MF options (and the equivalents for other<br>
compilers), which spits out the header dependency information.</blockquote><div><br></div><div>That is awesome. Thanks!</div></div></div>