[CMake] Including .h files in Visual Studio projects

Jesper Eskilson jesper at eskilson.se
Mon Jun 25 09:06:58 EDT 2007


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


More information about the CMake mailing list