emilk / loguru

A lightweight C++ logging library
The Unlicense
1.76k stars 256 forks source link

Add vcpkg installation instructions #227

Open FrankXie05 opened 2 years ago

FrankXie05 commented 2 years ago

loguru is available as a port in vcpkg, a C++ library manager that simplifies installation for loguru and other project dependencies. Documenting the install process here will help users get started by providing a single set of commands to build loguru, ready to be included in their projects.

We also test whether our library ports build in various configurations (dynamic, static) on various platforms (OSX, Linux, Windows: x86, x64) to keep a wide coverage for users.

I'm a maintainer for vcpkg, and here is what the port script looks like. We try to keep the library maintained as close as possible to the original library.

Other: For different systems, loguru is used as a header-only library on windows. However, for linux, vcpkg provides CMakeLists.txt to export loguru as a library for use. That's why I submit this pr , in order to facilitate better use by users. 😊