[CMake] Listing headers in source lists

Bill Hoffman bill.hoffman at kitware.com
Wed Jun 12 13:03:48 EDT 2013


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



More information about the CMake mailing list