[CMake] Re: Including .h files in Visual Studio projects

Jesper Eskilson jesper at eskilson.se
Mon Jul 2 08:03:24 EDT 2007


2007/6/25, Jesper Eskilson <jesper at eskilson.se>:
> Hi all,
>
> I'm trying to get our header files to show up in Visual Studio. I
> though I could just do
>
> add_library(foo foo.cpp foo.h)
>
> but Visual Studio tries to compile my header file as if it was a .cpp
> file. What am I doing wrong?
>
> --
> /Jesper
>

Since nobody seems to have answered, shall I assume that I there is no
way to get header files to appear in a studio project?

-- 
/Jesper


More information about the CMake mailing list