Ported CMakeList of wbd