#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

#163 in Build Utils

Download history 526/week @ 2024-10-08 142/week @ 2024-10-15 5041/week @ 2024-10-22 6442/week @ 2024-10-29 7779/week @ 2024-11-05 5958/week @ 2024-11-12 9990/week @ 2024-11-19 11555/week @ 2024-11-26 7258/week @ 2024-12-03 8782/week @ 2024-12-10 7591/week @ 2024-12-17 4280/week @ 2024-12-24 5059/week @ 2024-12-31 5716/week @ 2025-01-07

24,236 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