1. C/C++ > General > Additional Include Directories and
2. Linker > Input > Additional Dependencies
3. C/C++ > Code Generation > Runtime Library to /MT (Release) or /MTd (Debug) according to the Gtest project's settings. Make sure their settings are EQUAL.
Finally, try to run the following sanity test:
#include
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
沒有留言:
張貼留言