title: Create a custom symbolic link to a library at install time with CMake
body: <p>Under Linux with CMake, I'm building a shared library libIex-2_0.so.10.0.1</p>
  
  <pre><code>ADD_LIBRARY (Iex SHARED
    [*.cpp]
  )
  SET_TARGET_PROPERTIES(Iex PROPERTIES OUTPUT_NAME "Iex-2_0")
  </code></pre>
  
  <p>The 10.0.1 version is set with a call to</p>
  
  <pre><code>SET_TARGET_PROPERTIES ( Iex
    PROPERTIES
    VERSION 10.0.1
    SOVERSION 10
  )
  </code></pre>
  
  <p>In the installation folder, these links are created</p>
  
  <pre><code>libIex-2_0.so -&gt; libIex-2_0.so.10
  libIex-2_0.so.10 -&gt; libIex-2_0.so.10.0.1
  libIex-2_0.so.10.0.1
  </code></pre>
  
  <p>However, to match previous builds made with another build system, I need to add a legacy symbolic link, stripping the 2_0 suffix :</p>
  
  <pre><code>libIex.so -&gt; libIex-2_0.so.10.0.1
  </code></pre>
  
  <p>What would be the proper CMake way to create such a link ?</p>