Thanks for vcpkg, we can easily bring lots of c++ libraries into our C++ project. If you get more detail information about vcpkg, please visit sites below!
I prepare Makefile
to install prerequisites of ubuntu/debian and mac.
(Sorry to Windows user.. Please following this link to check prerequisites in Windows.)
Based on your OS, you can set the environment to use vcpkg by using a command below.
# Ubuntu
make prepare_ubuntu
# debian
make prepare_debian
# mac
make prepare_mac
You can also check what packages will be installed in the Makefile.
After setting the environment, you can properly use vcpkg.json
file which manages configurations of vcpkg.
You can browse the library what you want in this link!
After putting some libraries in your vcpkg.json
file, please running reconfigure the CMake in vscode.
While project is reconfigured, you can see the instruction how to include the library into your CMakeLists.txt
like in the image below.
By following the instruction from kind vcpkg
, I can use spdlog
library easily in my project like the image below!
One more time, I hope this repository can help you to reduce your stress from including the library into your C++ project!
And if you have any suggestions, questions and issues, don't hesitate to remain or contact to me!
Thanks a lot!