How to add GoogleTest to a plugin?

I’m trying to setup a workflow where I can compile a C++ plugin that contains GoogleTest as a module in the plugin. However, when I go to build the plugin using:

./RunUAT.sh BuildPlugin -Plugin=../UnrealProjects/ShapeArt/Plugins/Shapes/Shapes.uplugin -TargetPlatforms=Linux -NoHostPlatform -Package=../UnrealProjects/Junk

I get an error that GoogleTest, which is included as a module, can’t be included because it’s not a C++ project.

I’ve previously been able to include GoogleTest in a project module without this issue.

Any thoughts on how to make this work would be appreciated.