<div dir="ltr">On Mon, Mar 7, 2016 at 9:19 PM, Eric Wing <span dir="ltr"><<a href="mailto:ewmailing@gmail.com" target="_blank">ewmailing@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 3/7/16, Eric Wing <<a href="mailto:ewmailing@gmail.com">ewmailing@gmail.com</a>> wrote:<br>
> On 3/7/16, David Cole <<a href="mailto:DLRdave@aol.com">DLRdave@aol.com</a>> wrote:<br>
>> If you include those files in the source list for a library, executable,<br>
>> or<br>
>> custom target, they should show up in IDE projects, and they should be<br>
>> ignored by Makefile type projects. Have you tried that?<br>
>><br>
>><br>
>> David<br>
>><br>
><br>
> I haven't tried it yet since I was wondering what the best approach was :)<br>
> Since some of my files are somewhat project oriented instead of target<br>
> oriented, I wasn't sure if putting them the library/executable targets<br>
> was best. But if it is, I'll try that.<br>
><br>
> Thanks,<br>
> Eric<br>
><br>
<br>
</span>Well, I gave it a try. So far, it looks good.<br>
<div class=""><div class="h5"><br>
Thanks,<br>
Eric<br></div></div></blockquote><div><br>I usually do this to make my IDE aware of files:<br><br>add_custom_target(MyProject_HDRS SOURCES MyHeader.h MyImplementation.hpp)<br><br></div><div>It sounds like David says you can do the same for your .cmake files. This is pretty awkward though - it seems like there should be more of an explicit function for this, something like:<br clear="all"></div><div><div><div class="gmail_signature"><br>add_files_to_IDE(MyHeader.h MyImplementation.hpp)<br><br>This would make it much more clear what this line is for and would prevent forcing this "abuse" of the concept of a target for a very common use case.<br><br>David</div></div></div></div></div></div>