Remove main/ and test_main.cpp
Refine CMakeLists.txt