How to Find Installed Packages II
Let's learn how to find installed package targets in CMake.
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_DIRS
or<PKG_NAME>_INCLUDES
<PKG_NAME>_LIBRARIES
or<PKG_NAME>_LIBS
<PKG_NAME>_DEFINITIONS
IMPORTED
targets specified by the find-module or config-file ...