pub fn build<P: AsRef<Path>>(path: P) -> PathBuf
Expand description
Builds the native library rooted at path
with the default cmake options.
This will return the directory in which the library was installed.
Examples
use cmake;
// Builds the project in the directory located in `libfoo`, installing it
// into $OUT_DIR
let dst = cmake::build("libfoo");
println!("cargo:rustc-link-search=native={}", dst.display());
println!("cargo:rustc-link-lib=static=foo");