On 31-Jan-16 03:42, vadtec wrote:
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.
Have a look at hunter <https://github.com/ruslo/hunter/> –
Cross-platform package manager for C++ (based on CMake ExternalProject).
Hunter has CMake versions for:
* libpng <https://github.com/ruslo/hunter/wiki/pkg.png>
* libssh2 <https://github.com/ruslo/hunter/wiki/pkg.libssh2>
* zlib <https://github.com/ruslo/hunter/wiki/pkg.zlib>
Curl <https://github.com/bagder/curl> has CMake support by itself. The
only library missing is libiconv. It seems that
LuaDist project has added a CMake build here
<https://github.com/LuaDist/libiconv>.
You could either take all the libraries and include in your project or
open hunter tickets. <https://github.com/ruslo/hunter/issues>
Cheers,
Cristian.
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake