add CMake build system

a runtime assert error
add CMake build system

a runtime assert error