cmk 0.1.2

A build dependency for running `cmake` to build a native library
Documentation
  • Coverage
  • 10%
    1 out of 10 items documented1 out of 10 items with examples
  • Size
  • Source code size: 9.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.46 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • MoAlyousef/cmk
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • MoAlyousef

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");
}