def _cmake_add_executable(self, tline: CMakeTraceLine) -> None:
    args = list(tline.args)
    is_imported = True
    if ('IMPORTED' not in args):
        return self._gen_exception('add_executable', 'non imported executables are not supported', tline)
    args.remove('IMPORTED')
    if (len(args) < 1):
        return self._gen_exception('add_executable', 'requires at least 1 argument', tline)
    self.targets[args[0]] = CMakeTarget(args[0], 'EXECUTABLE', {}, tline=tline, imported=is_imported)
def _cmake_add_executable(self, tline: CMakeTraceLine) -> None:
    args = list(tline.args)
    is_imported = True
    if ('IMPORTED' not in args):
        return self._gen_exception('add_executable', 'non imported executables are not supported', tline)
    args.remove('IMPORTED')
    if (len(args) < 1):
        return self._gen_exception('add_executable', 'requires at least 1 argument', tline)
    self.targets[args[0]] = CMakeTarget(args[0], 'EXECUTABLE', {}, tline=tline, imported=is_imported)