How to compile and link google tests in C++ project in Visual Studio 2013 but with Gtest installed by NuGet Package Manager?
问题 I have Microsoft Visual Studio 2013 Community Edition on Windows 7. I want to install gtest and gmock for C++ in newer way than downloading headers and binaries or compiling by myself. I found Tools > Nuget Package Manager > Manage Nugets Packages For Solution I chosen Online, then typed gtest. From search results I've found Google Test, so I've installed its for my current project. After the installation the code below compiles: #include <iostream> #include <gtest\gtest.h> using namespace