-
Notifications
You must be signed in to change notification settings - Fork 1
Build gtest on visual studio
In libloaorder readme we read
Just generate an MSVC solution using Google Test's CMake config, and build the gtest-main project.
I do not know why it is not advised to use the msvc solutions that
come with gtest (in gtest-1.7.0\msvc
) but let's build this using CMake:
- run CMake (from start menu for instance) specify the paths then hit configure:
I specified the output directory as build
- could not find standard
practices on this
- Specify the python path then rehit configure:
-
Finally hit generate. This will create MSVS solution files in gtest-1.7.0/build directory.
-
Doubleclick on
gtest.sln
and build it in Visual Studio - both release and debug are useful I think but I only built release. Go tobuild/Release
folder grab gtest.lib and gtest_main.lib and drop them into gtest-1.7.0/. This last step will make CMake for libloadorder pick them up.
Best practices are on the TODO list