adding CMakeLists.txt to build ferns_demo