CMake Find configuration -> build.rs -> cargo.toml


#1

Hi,

I have a Pincode dialog written in wswidgets. For this small project I use CMAKE to create the pincode static library. CMAKE has the possibilities to find the libraries of wxwidgets.
I wrote a build.rs using the cmake crate to build the project.
I fail in the linking of the project using the pincode static libraries, because it doesn’t find the wxwidgets libraries.

Is there a way to reuse the find_libraries of CMAKE to set the additional link libraries needed in the linking stage of rust? Somekind of environment variable.

or pass a link argument ${wx-config --libs}

Greetings,
DDT