title: Listing header files in Visual Studio C++ project generated by cmake
body: <p>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.</p>
  
  <p>What I need to add in CMakeList.txt to list header files?
  The preferred solution is where no need to list each particular header file.</p>
  
  <p><strong>Solution</strong>
  Here is a solution I came with:</p>
  
  <pre><code>file(GLOB_RECURSE INCS "*.h")
  add_library(myLib ${SRCS} ${INCS})
  </code></pre>
  
  <p>Thanks</p>