def METHOD_NAME(self, file="../CMakeLists.txt"):
    number = "\.".join(["[0-9]+"] * 3)
    ver = re.compile("^set \(PROJECT_VERSION \"({0}[^\"]*)\"\)$".format(number))
    with open(file) as fh:
        for line in fh:
            if "PROJECT_VERSION" in line:
                match = ver.match(line)
                if match:
                    return match.group(1)
    raise ValueError("Couldn't find matching version in {0}".format(file))