Skip to content

Building Google Test and Google Mock from Source with Premake5 #4580

Answered by AeroSW
AeroSW asked this question in Community Help
Discussion options

You must be logged in to vote

I configured my premake5.lua file to handle the files similar to their CMakeLists.txt. So I am excluding all source files from building and linking, except, g{lib}_main.cpp and g{lib}-all.cpp. I then added the root folder to my includes {dirs...}/google{lib} as well as the include folder: {dirs...}/google{lib}/include and I was able to build the source with this configuration.

Note: {lib} so I don't need to write test and mock above.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AeroSW
Comment options

Answer selected by AeroSW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants