Cmake Find Package
Cmake find package notes
The primary methods of bringing dependencies is find_package
and FetchContent
.
The command has a few modes by which it searches for packages.
Module Mode
In this mode, cmake searches for a file called Find<PackageName>.cmake
, looking first in the locations listed in the CMAKE_MODULE_PATH
, then among the find modules provided by the cmake installation.
Config mode
in this mode, cmake searches for a file called, lowercasePackageName-config.cmake