title: Recursive CMake search for header and source files
body: <p>I am new to CMake and would like to ask if somebody can help in the following problem. </p>
  
  <p>I have C++ source and header files in their respective folders and now, I want to make a CMake text file that recursively searches for them. </p>
  
  <p>Currently, I am doing it in this way: </p>
  
  <pre><code>CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
  PROJECT(CarDetectorDAISY)
  
  file(GLOB_RECURSE SRCS *.cpp)
  file(GLOB_RECURSE HDRS *.h)
  
  ADD_EXECUTABLE(stereo_framework  ${SRCS} ${HDRS})
  TARGET_LINK_LIBRARIES(stereo_framework) 
  </code></pre>
  
  <p>This creates my <em>CarDetectorDAISY.sln</em> solution file and when I try to build it, it shows 
  an error that header files are not found (No such file or directory). </p>
  
  <p>It would be really grateful if someone can please help me. Thanks.</p>