[CMake] Listing headers in source lists

James Bigler jamesbigler at gmail.com
Fri Jul 12 16:42:13 EDT 2013


On Wed, Jun 12, 2013 at 11:03 AM, Bill Hoffman <bill.hoffman at kitware.com>wrote:

> On 6/12/2013 10:29 AM, J Decker wrote:
>
>> It's not nessesary for 2005, 2008, 2010, or 2012 versions.
>> visual studio builds a seperate browse information database.  2010 and
>> 12, when in sources you can right click on the #include <filename>
>> filename and open directly.
>>
>> Headers do get all mixed up in the same headers folder (including all
>> the system headers that got included) but they do not need to be
>> specified; and updating the timestamp on a header does cause proper
>> compiles without them being listed.
>>
> I disagree...  :)
>
> If you want them organized into folders then you should add them.  VS IDE
> developers like to have them.   They are not required for the build to work
> (unless they are generated files).  However, if you have developers on the
> team that really use the VS IDE, they will want those header files listed
> as sources of the project, so they can click on them and edit them.  They
> will not want to have to open a .cxx file and right click on a header to
> edit it.
>
>
> -Bill
>
>
>
Another reason to have the headers in the project is for when doing project
or solution wide text searches.  Unless the header file is in there it
won't search those files even if they are included.

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130712/28c1e2d1/attachment.htm>


More information about the CMake mailing list