Use cmake,re-structure the whole structure.