Using cmake to include libheif as an external dependency

Old thread but it may help other:

We did not add yet the VERSION checks. That will be done for the next release as there are quite a few ABI changes in libHEIF since 1.7.0