Add CMake example

This commit is contained in:
Jörn-Michael Miehe
2019-08-15 16:52:52 +02:00
parent 12f8d239f8
commit 1f8a5265f6
5 changed files with 43 additions and 0 deletions

11
rust-to-cmake/build.rs Normal file
View File

@@ -0,0 +1,11 @@
extern crate cmake;
fn main() {
// Builds the project in the directory located in `libfoo`, installing it
// into $OUT_DIR
let dst = cmake::build("libdouble");
println!("cargo:rustc-link-search=native={}", dst.display());
println!("cargo:rustc-link-lib=static=double");
}