#build-dependencies #cmake #running #native

build cmk

A build dependency for running cmake to build a native library

3 releases

0.1.2 Oct 9, 2024
0.1.1 Oct 9, 2024
0.1.0 Oct 8, 2024

#166 in Build Utils

Download history 6703/week @ 2024-10-25 7759/week @ 2024-11-01 5778/week @ 2024-11-08 9599/week @ 2024-11-15 9990/week @ 2024-11-22 9164/week @ 2024-11-29 8156/week @ 2024-12-06 8773/week @ 2024-12-13 5651/week @ 2024-12-20 4263/week @ 2024-12-27 6177/week @ 2025-01-03 5953/week @ 2025-01-10 7866/week @ 2025-01-17 11605/week @ 2025-01-24 10450/week @ 2025-01-31 10715/week @ 2025-02-07

41,708 downloads per month
Used in 54 crates (via fltk-sys)

MIT license

9KB
157 lines

cmk

A simpler implementation of cmake-rs which assumes a recent enough version of CMake.

Usage

# Cargo.toml
[build-dependencies]
cmk = "0.1"

Example

// build.rs
fn main() {
    let dst = cmk::Config::new("cpplib")
        .generator("Ninja")
        .profile("Release")
        .define("SOME_CMAKE_OPTION", "ON")
        .build();
    println!("cargo:rustc-link-search=native={}", dst.display());
    println!("cargo:rustc-link-lib=static=cpplib");
}

No runtime deps