It seems you haven't built Google Test from what you describe. You need to compile the project into a library and then link against it. If you have CMake installed, then you have two options:
- Use CMake's GUI (it's fairly intuitive) to generate the build system files, and then use those as usual (e.g. if you generate a Visual Studio solution, open the
.sln
file and build the project). - Use the command line to do the same thing; essentially you just create a new directory and do
cmake <path-to-google-test>
inside of it. The rest is the same.
You could also build the library by yourself. The distribution contains a folder named fused-src
which should contain at least two files: gtest_main.cpp
and gtest-all.cpp
. Compile those files and you're done. You need to generate two libraries here: gtest
out of gtest-all.cpp
and gtest_main
out of gtest_main.cpp
.
Another alternative would be to get already built libraries. I've never searched for them, but they might be out there.