title: How to load variables in a "bar=foo" syntax in CMake?
body: <p>It is nice to be able to share the same file between a Makefile and shell scripts due to the fact that they both can cope with the following syntax for key-value pairs: </p>
  
  <pre><code>$&gt; cat config 
    var1=value
    var2=value
    var3=value
    var4=value
    var5=value
  </code></pre>
  
  <p>So, just a <code>source config</code> from a shell script will be fine, as well as <code>include config</code> from a <code>Makefile</code>. However, with CMake the syntax becomes <code>SET(var1 value)</code>. Is there some easy way that I can feed CMake with a file with variables using the syntax of above? I mean easy in the sense that I do not like to run e.g. <code>sed</code> over it.</p>