[CMake] Listing headers in source lists

J Decker d3ck0r at gmail.com
Wed Jun 12 10:29:31 EDT 2013


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.

On Wed, Jun 12, 2013 at 6:33 AM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> On 6/12/2013 4:45 AM, Mateusz Loskot wrote:
>>
>> It it still necessary if one wants to see headers listed as project files
>> in IDE
>> like Visual Studio, isn't it?
>>
>> Or, has anything changed in recent CMake versoins,
>> so it is no longer necessary.
>
> It is needed.   There is one other case where you have to do this for things
> to work.  If you have generated header files with a custom command, this is
> how you let CMake know which target needs them.
>
> -Bill
>
>
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list