diff --git a/Cargo.toml b/Cargo.toml index 17b232d..b55fde8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ keywords = ["xmp", "metadata"] categories = ["api-bindings"] edition = "2021" rust-version = "1.70.0" +links = "xmp_toolkit" exclude = [ "external/xmp_toolkit/docs", "external/xmp_toolkit/samples", diff --git a/build.rs b/build.rs index 8d48135..de8923c 100644 --- a/build.rs +++ b/build.rs @@ -202,6 +202,11 @@ fn main() { &out_dir ); + println!( + "cargo:include={}/external/xmp_toolkit/public/include", + std::env::var("CARGO_MANIFEST_DIR").expect("Failed to get CARGO_MANIFEST_DIR") + ); + xmp_config .cpp(true) .define("TXMP_STRING_TYPE", "std::string")