update CMakeLists.txt and mainwindows.h