Adding CMakeLists.txt files to support CMake build system. Note that only FLAT build works now due to limitations of current CMake build system. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>