Proper pkg-config files should be generated and installed in $(prefix)/lib/pkg-config for all libraries so that it's much easier to find them.