How to correctly Build the Install section

In my project, I need to use the “install” section of the OpenCV build to package a C# library. However, after downloading and successfully compiling OpenCV, the “install” section might have issues. I hope to obtain files like those shown in the picture. How should I proceed?