title: Visual Studio's CMake with vcpkg: Error gdal is not found
body: <p>I have been trying to build a cmake c++ project. More specifically I am trying to use the gdal library in this project. In the CMakeLists.txt it says <code>find_library(GDAL gdal)</code> after doing some research i found, that visual studio can open cmake files by default as mention in this thread: <a href="https://docs.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=vs-2019" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=vs-2019</a>.</p>
  <p>Moreover, visual studio should also automatically include the gdal library once i have set it up with <code>vcpkg</code> correctly. I've already downloaded the x64-windows version of the library (<code>vcpkg install gdal:x64-windows</code>) in order to build for the right architecture and made it available via <code>vcpkg integrate install</code> on a user-wide scope.</p>
  <p>After some trial and error, everything works fine now, the toolchain gets included accordingly and the library is found automatically, resulting in a configuration like that:</p>
  <p><a href="https://i.stack.imgur.com/Rbnr4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rbnr4.png" alt="mycmakeconfig" /></a></p>
  <p>However, when trying to include the header files (or anything else; see code snippet), visual studio does not seem to link the library correctly as it will result in the error message: <code>cannot open source file &quot;gdal/gdal.h&quot;.</code></p>
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;gdal/ogrsf_frmts.h&gt;
  #include &lt;gdal/gdal.h&gt;
  #include &lt;gdal&gt;
  </code></pre>
  <p>Where should I further investigate?</p>