added CMakeLists.txt for compiling with cmake