|
From: Jonathan S. <sw...@gm...> - 2021-11-02 13:22:22
|
Sure, I've pushed up an example[1] for how to include QuantLib into a project using vcpkg on both Linux and Windows, including the part about the custom triplet on Linux. If you know of a better place to put the example then I will be happy to move it there instead. Apart from that, Microsoft's documentation[2] is not that bad, albeit a bit fragmented over several different sites in my experience. One thing that would make the integration with vcpkg even better is if QuantLib supported the find_package command[3]. Has there been any discussion of this in the past? If not, then that might be a good idea for someone to help contribute in the near future. [1] https://github.com/sweemer/quantlib-vcpkg-example [2] https://vcpkg.io/en/docs/examples/installing-and-using-packages.html [3] https://cmake.org/cmake/help/git-master/command/find_package.html On Tue, Nov 2, 2021 at 1:04 AM Luigi Ballabio <lui...@gm...> wrote: > Thanks, Jonathan! Do you have a primer on how to use this for someone who > never used vcpkg? > > Luigi > > On Sun, Oct 31, 2021 at 8:05 AM Jonathan Sweemer <sw...@gm...> > wrote: > >> Hello QuantLib users, >> >> In case there are any other vcpkg users out there, heads up that I have >> submitted a pull request[1] to update QuantLib from v1.22 to v1.24. >> >> I have also enabled the option to build QuantLib as a shared library on >> Linux through vcpkg, which has been disabled until now for some reason. In >> case the lack of shared library support on Linux has prevented anyone from >> using vcpkg, you might want to try again once this change is merged. (Note >> that in order to build as a shared library on Linux with vcpkg you need to >> define a new triplet by following the instructions in [2]). >> >> On Windows, still only static linkage is supported, both in vcpkg and in >> QuantLib's CMake build settings. >> >> [1] https://github.com/microsoft/vcpkg/pull/21068 >> [2] >> https://vcpkg.readthedocs.io/en/latest/examples/overlay-triplets-linux-dynamic/ >> >> Jonathan Sweemer >> _______________________________________________ >> QuantLib-users mailing list >> Qua...@li... >> https://lists.sourceforge.net/lists/listinfo/quantlib-users >> > |