I have never used it before so cannot offer usage advice, but a quick search for "
cmake fetchcontent" turns up
the documentation page as the first hit, also pointed to by the man page for cmake.
See if you can work it out from those sources.
Good luck!