How to Find Installed Packages II
Let's learn how to find installed package targets in CMake.
We'll cover the following...
We'll cover the following...
In most cases, we can expect some variables to be set when we call find_package(), whether we're using a built-in find-module or a config-file bundled with a package (assuming that the package was found):
<PKG_NAME>_FOUND<PKG_NAME>_INCLUDE_DIRSor<PKG_NAME>_INCLUDES<PKG_NAME>_LIBRARIESor<PKG_NAME>_LIBS<PKG_NAME>_DEFINITIONSIMPORTEDtargets specified by the find-module or config-file
The IMPORTED targets
The last point is really interesting—if a package supports so-called ...