title: Build a cpp application with gradle-native cpp-application & cpp-library plugins
body: <p>I've tried to build simple cpp project with gradle-native (cpp-application &amp; cpp-library plugins) with success.</p>
  
  <p>I would like to use gradle-native for a more complex but unfortunately I failed... Even when trying to mimic samples on gradle-native/samples !
  I've spend hours on it :(</p>
  
  <p>Here is what I would like to do :</p>
  
  <pre><code>server (cpp-application) -&gt; depends on driver or factory
  driver (cpp-library) 
    |---core (cpp-library)
    |---alsa (cpp-libary with linux operating system) -&gt; depends on core
    |---asio (cpp-library with windows operating system) -&gt; depends on core
    |---factory (the resulting library which should use either linux or windows library) -&gt; depends either on alsa, either on asio according to the operating system
  </code></pre>
  
  <p>or</p>
  
  <pre><code>server (cpp-application) -&gt; depends on driver
  driver (cpp-library)
    |---core (cpp-library)
    |---alsa (cpp-libary with linux operating system) -&gt; depends on core
    |---asio (cpp-library with windows operating system) -&gt; depends on core
    |---src/ (the resulting library which should use either linux or windows          library) -&gt; depends either on alsa, either on asio according to the operating system
  </code></pre>
  
  <p>Is there anybody with a solution please ?
  Thanks !
  Regards</p>