How to make lib file for use in ue5 engine

I even made the Slicer.sln file through cmake after cloning the git project.
I want to create a plug-in (library) that can use the functions of Slicer in Unreal Engine 5.
Does anyone know how?