September 2018
Intermediate to advanced
606 pages
14h 32m
English
Once pkg-config is found, CMake will provide two functions to wrap the functionality offered by this program:
These functions accept the REQUIRED and QUIET arguments, as find_package does. In more detail, our call to pkg_search_module is the following:
pkg_search_module( ZeroMQ REQUIRED libzeromq libzmq lib0mq IMPORTED_TARGET )
Here, the first argument is the prefix that will be used to name the target that is storing the result of the search for the ZeroMQ library: PkgConfig::ZeroMQ. Notice that we need to pass different options for the names of the library on the system: ...
Read now
Unlock full access