import re


def find_application_includes(path):
    """
    Build a set that contains the vtk includes found in the file.

    :param path: The path to the application file.
    :return: The includes that were found.
    """
    includes = set()
    include_hdr1 = re.compile(r'((?:vtk|QVTK).*\.h)')
    include_hdr2 = re.compile(r'(\w+QtQuick\.h)')
    content = path.read_text()
    incs = include_hdr1.findall(content)
    includes.update(incs)
    incs = include_hdr2.findall(content)
    includes.update(incs)
    return includes