It could be managed by Cargo.toml via [package.metadata.capi.cmake]. Potential customization points are similar as pkg-config, plus:
- target_name - how cargo-c will name the target (in the pattern `::<target_name>, default value is the same as )
- template_filename - the cmake script for overriding the default template for
<cdylibname>-config.cmake. It must support placeholders like pkg-config does and cmake does itself
This descriprion would be refined if there is an interest for this feature , if you won't mind, I'll try to make a PR.
Thanks for bridging the safe crates world and another projects with ffi 😅
It could be managed by Cargo.toml via
[package.metadata.capi.cmake]. Potential customization points are similar as pkg-config, plus:<cdylibname>-config.cmake. It must support placeholders like pkg-config does and cmake does itselfThis descriprion would be refined if there is an interest for this feature , if you won't mind, I'll try to make a PR.
Thanks for bridging the safe crates world and another projects with ffi 😅