cmake/¶
This directory contains CMake helper modules used by the repository, mainly for packaging and third-party dependency integration.
What’s Inside¶
- Packaging-related CMake logic (the
packagetarget) - FetchContent integration that pulls the shared CANN engineering cmake repo
- Third-party dependency download/integration scripts under
cmake/third_party/
Key Files¶
cmake/package.cmake: Packaging entry functions included by the top-levelCMakeLists.txt; delegates the cpack configuration toset_cann_cpack_configprovided by the engineering repocmake/fetch_cann_cmake.cmake: Fetcheshttps://gitcode.com/cann/cmakeand exposes its common functions (init_cann_project,set_cann_cpack_config, the bundledmakeself/install scripts, etc.)cmake/func.cmake: Project-local helpers (protobuf, signing, packing)cmake/third_party/: Third-party dependency helper scripts
Entry Points¶
- Top-level
CMakeLists.txtincludescmake/package.cmakeand invokes the packaging helpers build.sh --pkgtriggers the repository packaging flow