> You should set UG_DIR (or was it ug_DIR) to the place where the ug-config*.cmake files reside and simply use find_package(ug) in package cpnfiguration mode below

Also, the module cannot be named FindUG then, because this will lead to an infinite recursion...