feat(build): install CMake config module and pkg-config descriptor
Also, upgrade to CMake 3.13. The commit also contains significant refactors, as otherwise it is not possible to properly export target `megengine` to MegEngine-targets.cmake: 1. Optionally use system provided Flatbuffers. 2. Optionally use system provided MKL-DNN (Tested with Debian). 3. Refactor megbrain and megdnn targets into object libraries. 4. Set different path in BUILD_INTERFACE and INSTALL_INTERFACE of various target_include_directories. 5. Specify PUBLIC/PRIVATE on various target_link_libraries. GitOrigin-RevId: df118a879e12acdc42b56bdd7c7c71b34b0effc3
Showing
cmake/BuildFlatBuffers.cmake
0 → 100644
cmake/FetchMegBrainVersion.cmake
0 → 100644
cmake/MegEngineConfig.cmake.in
0 → 100644
cmake/megengine.pc.in
0 → 100644
想要评论请 注册 或 登录