title: Compiling SOIL with Clion
body: <p>I've tried to use SOIL on one of my projects, but it needs to be compiled first, because it is not a header-only library. Unfortunately, attempting such with Clion only delivers lots of compiler errors, as the project wasn't made with CMake. I've tried compiling versions of SOIL that were "tailored for CMake" like this one: <a href="https://github.com/paralin/soil" rel="nofollow noreferrer">https://github.com/paralin/soil</a> without success.</p>
  
  <p>Simply using the lib file along with the sources that were provided by SOIL without further compilation results in linker errors in my main project similar to these:
  <a href="https://stackoverflow.com/questions/50068522/linking-soil-mingw-undef-ref">linking soil, mingw, undef ref</a></p>
  
  <p><code>undefined reference to 'glGetString@4'</code></p>
  
  <p>But the provided solution of including <code>-lsoil</code> in the linker options did not work for me.</p>
  
  <p>How do I properly include SOIL in my project or properly compile it, assuming I made no mistakes in including it?</p>