This diff refactors the FindBerkeleyDB.cmake module and improve it in
several ways:
- It follows the cmake best practices on variable names;
- It extracts a version number from the db.h header so a minimal version can be required (previously any version would match);
- It creates an imported target that can be linked to propagate usage requirements (no longer needed to use the list variables);
- It provides a best-effort path search to find the header and libraries, by combining around the version number (more future-proof);
- It provides useful messages when the files are found;
- It marks the cache variables as advanced to make it GUI friendly.
This is expected to serve as a reference to update the other FindPackage
modules in the same manner.