def get_package_dir_cmake_options(deps_cpp_info, libs = ["ALL"]):
    """
    Returns a dictionary with "<package>_DIR" : path pairs for each dependency in the deps_cpp_info object that can be used to point
    cmake to package config files.
    """
    cmake_options = {}

    get_all =  libs[0] == "ALL"

    deps = deps_cpp_info.deps
    for dep in deps:
        use_dep = get_all or dep in libs
        if use_dep:
            lib_paths = deps_cpp_info[dep].lib_paths
            if lib_paths:
                cmake_options[dep] = (lib_paths[0] + '/cmake/MyLib').replace("\\","/")

    return cmake_options