extern crate cmake; use cmake::Config; fn main() { let dst = Config::new("pkgparse").build_target("all").build(); println!("cargo:rustc-link-search={}/build", dst.display()); }