cmake keep debugging symbol
#Add the following line to your CMakeLists.txt file to set the compilation mode to Debug (non-optimized code with debug symbols):
set(CMAKE_BUILD_TYPE Debug)
#Add the following line to your CMakeLists.txt file to set the compilation mode to RelWithDebInfo (optimized code with debug symbols):
set(CMAKE_BUILD_TYPE RelWithDebInfo)