CMakeLists.txt modified (add warning and debug flag)