redis/hiredis — pull request #129 by thomaslee (2012-10-28 03:41:22+00:00)
Title: Optional pkg-config and CMake configuration files

Optional pkg-config and CMake configuration files.

With these changes, you can now automatically retrieve hiredis include & library info from pkg-config (e.g. pkg-config hiredis --cflags --libs).

A CMake configuration file is also provided, which makes it easy for folks to link against hiredis in projects managed by CMake (e.g find_package(Hiredis))

The CMake support is currently built on top of the pkg-config stuff, and so will only be installed if we manage to detect the appropriate location for the .pc file, but no reason why it couldn't work independently with a little more effort.

These features are completely optional & the build will automatically detect at install time whether the appropriate pkg-config / CMake directories are in place before attempting to install the configuration files.