fixed cmake recurse file list and removed file search from main.cpp