General Motors on Sunday said it and Chinese partner Shanghai Automotive Industry Corp. have signed an agreement to take over the engine factory of South Korea's bankrupt Daewoo Motor Co. in eastern China.