This recipe shows how to detect the ZeroMQ library using CMake and pkg-config
.
The recipe works on Unix-like systems, such as GNU/Linux and macOS.
For CMake 3.6 and higher, an IMPORTED
library can be used, but an example
for older versions of CMake is also shown.