add gdb debug setting into CMakeLists.txt