title: What is the recommended way of using GLib2 with CMake
body: <p>Id like to use GLib in my C application which uses CMake as the build system.</p>
  
  <p>Now, I'm somehow confused how I should enable GLib in my CMakeLists.txt. Basically, you add libraries in cmake using the <code>find_package</code> command, so I tried, according to <a href="https://bugs.freedesktop.org/show_bug.cgi?id=68506" rel="noreferrer">this</a> bugreport</p>
  
  <pre><code>find_package(GLib2)
  </code></pre>
  
  <p>But nothing is found. In the GLib documentation it is suggested to use <code>pkg-config</code>, on the other hand.</p>
  
  <p>What is the recommended way of enabling glib in a cmake-based project?</p>