add cmake support with CMakeLists.txt and third_party/CMakeLists.txt