Skip to content

Feature request: add ability to generate CMake <cdylibname>-config.cmake for find_package(<cdylibname>) #524

@leha-bot

Description

@leha-bot

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 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions