pub fn find_package(name: impl Into<String>) -> FindPackageBuilderExpand description
Find a CMake package on the system.
This function is the main entrypoint for the crate. It returns a builder object that you
can use to specify further constraints on the package to find, such as the version
or components. Once you call the find()
method on the builder, the crate will try to find the package on the system or return an
error if the package does not exist or does not satisfy some of the constraints. If the package
is found, an instance of the CMakePackage struct is returned that can be used to further
query the package for information about its individual CMake targets.
See the documentation for FindPackageBuilder, CMakePackage, and CMakeTarget for more
information and the example in the crate documentation for a simple usage example.