def METHOD_NAME(self, module_file, targets):
    content = ""
    for alias, aliased in targets.items():
        content += textwrap.dedent(f"""\
            if(TARGET {aliased} AND NOT TARGET {alias})
                add_library({alias} INTERFACE IMPORTED)
                set_property(TARGET {alias} PROPERTY INTERFACE_LINK_LIBRARIES {aliased})
            endif()
        """)
    save(self, module_file, content)