The following is a CMake C++ Template for use with VS Code. It has been designed around Windows and the MSVC compiler, but would work perfectly with other compilers and on a Linux/Mac installation too ...
It is about using find_package with the packager vcpkg. It doesn’t work as described. This did not work when done on Windows exactly as described. It was necessary to use the header-only version.