liba 0.1.3

An algorithm library based on C/C++ language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use cmake::Config;

fn main() {
    let mut config = Config::new("");

    config.define("BUILD_TESTING", "0");
    #[cfg(not(feature = "float"))]
    config.define("LIBA_FLOAT", "8");
    #[cfg(feature = "float")]
    config.define("LIBA_FLOAT", "4");
    config.static_crt(true);

    let out = config.build();
    let lib = out.join("lib");

    println!("cargo:rustc-link-search=native={}", lib.display());
    println!("cargo:rustc-link-lib=static=a");
}