removed makefile and added CMakeLists.txt for cmake