Add CMake example
This commit is contained in:
11
rust-to-cmake/build.rs
Normal file
11
rust-to-cmake/build.rs
Normal 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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user