How to compile UE4 project as a framework

hi man,

i wanna another project to call ue4 project which i have built scenes .also i will convert some parameters, callback functions and so on . i don’t know if there are ways to let the ue4 project be a library, framework or service. i’m begging for your answers

thank u