Part 6 : Automatic dependencies fetch



Automatic dependencies fetch is allowed by pull_extra_module :
1
pull_extra_module("DataStream" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/DataStream.git")
This function behaves as find_package when the dependency is found in the given installation prefix, or CMAKE_MODULE_PATH. And, when dependency is not found, pull_extra_module will get the project at the given url via a git clone.

Extra information such as branch, tag or commit hash can be given to the function :
1
pull_extra_module("DataStream" "https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/DataStream.git" master)
Can be usefull to pin dependencies version to a given tag.