edit CMakeLists.txt

you can build the shared lib for cmake
assemble method is const.