[build] make cmakelist.txt platform independend;