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