[CMake] Re: Header files in Visual Studio projects?

David Cole david.cole at kitware.com
Fri Sep 22 08:07:03 EDT 2006



Filipe Sousa wrote:

>On Friday 22 September 2006 08:15, Anders Sundman wrote:
>  
>
>>Hi!
>>
>>We use CMake to generate Visual Studio projects and it works great.
>>Everything builds ok, etc.
>>
>>However, the header files we use are not included in the projects file
>>list. This doesn't effect the compilation, but from a development
>>perspective it's quite annoying.
>>
>>Is there some way of adding the header files to Visual Studio (and other
>>IDE:s) project files?
>>
>>Best Regards
>>Anders Sundman
>>    
>>
>
>Add the header files to your source list or use source_group
>
>
>  
>
Note: that should be "Add the header files to your source list *and 
optionally* use source_group"... Even if you use source_group, your 
header files need to be listed as sources for them to show up in that 
target's corresponding visual studio project...

HTH,
David



More information about the CMake mailing list