nebgnahz / cv-rs

Rust wrapper for OpenCV (manual at this point)
https://nebgnahz.github.io/cv-rs/cv/
MIT License
204 stars 41 forks source link

Create static build option #114

Open vadixidav opened 5 years ago

vadixidav commented 5 years ago

OpenCV should also be able to be built and linked statically through the help of the cmake crate. It does not always need to be used this way, but I would like the option to do this. I also believe this should be the default behavior. If this is fine I can go ahead and implement this and write a PR. I will hide the system version behind a feature flag (something like system).

vadixidav commented 5 years ago

This will be closed after #117. The default behavior is now statically building and linking OpenCV. You can opt into using the system install of OpenCV using the system feature if the old behavior is desired.