Add function of cancel moving
Fix error of target link libraries