[CMake] Extensionless Headers in Visual Studio

Tyler Roscoe tyler at cryptio.net
Tue Sep 29 16:18:36 EDT 2009


On Tue, Sep 29, 2009 at 08:49:29PM +0100, Kim Bale wrote:
> I'm working on an OpenSceneGraph project called osgOcean and we have a
> practice of using extensionless headers in our projects. CMake works

Why? Seems like this is just asking for trouble.

> The project builds perfectly, however purely for aesthetic reasons I'd
> quite like the headers to get put into headers folder.

Are you including the headers in the list of files you pass to
add_executable() and add_library()?

If the names of your header files follow a meaningful pattern, you could
try to use source_group().

tyler


More information about the CMake mailing list