c++ – How to link Google benchmark with Visual Studio 2019

I have downloaded the Google Benchmark source code and built it using CMAKE in windows.
I wish to link it to my existing C++ project in visual studio 2019.

I don’t understand how to link the benchmark libraries in my existing project in visual studio.

The benchmark libraries are generated in C:\google_benchmark\build\src\Release
But there is also another .lib file in generated in C:\google_benchmark\build\lib\Release

Do I add both of these to the Visual Studio linker?
Is there any path that I should be adding to the include directories?

A solution explaining how to link Visual studio project to Google benchmark libraries.

Read more here: Source link