How to use precompiled uobject plugin?

Hi,
My plugin contains uobject c++ code,
I package my plugin into a folder for distribution.

Then I create a project, delete the precompiled plugin’s cpp files, keep header files,
copy plugin into “Plugins” folder. compile my project, I found that : the plugin was recompiled,
and got error:
LINK : fatal error LNK1181: cannot open input file ‘C:\Users\X\UE4\CppBPPluginLibTest\Plugins\BinaryDemoPlugin\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-BinaryDemoPlugin-1641.lib’

How can I prevent UBT recompile the precompiled plugin, and in my project,
I just wan to use the precompiled plugin’s lib files and C++ Header files, remove the cpp files.

I found the built-in plugin: Engine\Plugins\Runtime\RuntimePhysXCooking
It was precompiled, but doesn’t contain any uobject class.

Thank you in advance.

Package your plugin to a folder and delete the Source directory.

PS:

  1. UE4Editor-BinaryDemoPlugin-1641.lib is an incorrect file. It should be UE4Editor-BinaryDemoPlugin.lib and without number at end.
  2. RuntimePhysXCooking is no UObject class, and it’s dll/lib/a/so files also haven’t any UObject class’s implements.

It worked!
But we should keep the header files and delete cpp files.
Sorry too late to review this issue, thank you very much!