@staticmethod
def qmake_quote(path):
    """ Return a path quoted for qmake if it contains spaces. """
    path = path.replace('\\', '/')
    if ' ' in path:
        path = '$$quote({})'.format(path)
    return path
