cmake-rs
cmake-rs copied to clipboard
This project desperately needs a full working example.
I was able to get this to work once using CMake install commands, but it would be really nice if there was a minimal working cmake that put a C or C++ library's build output somewhere in the target folder that a Rust project is able to link against, possibly with bindgen. It's just that I can't seem to find documentation and have to work by trial and error.
Any help would be appreciated, thanks!
There is small example in another repository https://github.com/alexcrichton/rust-ffi-examples/tree/master/rust-to-cmake.
Thanks, that actually the magic install line in CMakeLists.txt I needed to build, perhaps a good start would be to link that repo from cmake-rs's README.md? I might make a PR tonight if someone doesn't beat me to it