<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 31-Jan-16 03:42, vadtec wrote:<br>
    </div>
    <blockquote
      cite="mid:152958f75a7.d2fbb67a132248.5271304616753456549@vadtec.net"
      type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <div
        style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;"><br>
        <div>curl, libiconv, libpng, libssh2, and zlib are the libs I
          want to build and use both on Linux and Windows. I know all of
          those are available on Linux and I could use the system
          installed versions, but I want to use the same vesions on
          Windows as well. The server is only built on Linux, while the
          client needs to be built for Linux and Windows. All the libs,
          headers, etc go into the build directory, and the final "make
          install" puts everything into the bundle directory, so it can
          be packaged for distribution.</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br>
    Have a look at <a href="https://github.com/ruslo/hunter/">hunter</a>
    – Cross-platform package manager for C++ (based on CMake
    ExternalProject).<br>
    <br>
    Hunter has CMake versions for:<br>
    <ul>
      <li><a href="https://github.com/ruslo/hunter/wiki/pkg.png">libpng</a></li>
      <li><a href="https://github.com/ruslo/hunter/wiki/pkg.libssh2">libssh2</a></li>
      <li><a href="https://github.com/ruslo/hunter/wiki/pkg.zlib">zlib</a></li>
    </ul>
    <p><a href="https://github.com/bagder/curl">Curl</a> has CMake
      support by itself. The only library missing is libiconv. It seems
      that <br>
      LuaDist project has added  a CMake build <a
        href="https://github.com/LuaDist/libiconv">here</a>.<br>
    </p>
    <p>You could either take all the libraries and include in your
      project or open hunter <a
        href="https://github.com/ruslo/hunter/issues">tickets.</a><br>
    </p>
    <p>Cheers,<br>
      Cristian.<br>
    </p>
  </body>
</html>