add main.cpp in cmakelist.txt