cmake-rs icon indicating copy to clipboard operation
cmake-rs copied to clipboard

This project desperately needs a full working example.

Open jeffvandyke opened this issue 6 years ago • 2 comments
trafficstars

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!

jeffvandyke avatar Nov 12 '19 19:11 jeffvandyke

There is small example in another repository https://github.com/alexcrichton/rust-ffi-examples/tree/master/rust-to-cmake.

SheldonNico avatar Dec 13 '19 16:12 SheldonNico

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

jeffvandyke avatar Dec 16 '19 13:12 jeffvandyke