Updated CMake files to add build option for the debugger