I\'m building a cmake based build system for our product. The problem is that Visual Studio project, generated by cmake, doesn\'t display header files in solution browser.>
Just add the header files along with the source files:
PROJECT (Test) ADD_EXECUTABLE(Test test.cpp test.h)
Or using variables:
PROJECT (Test) SET(SOURCE test.cpp ) SET(HEADERS test.h ) ADD_EXECUTABLE(Test ${SOURCE} ${HEADERS})