add option -DENABLE_DEBUG=1 for cmake

add option -DENABLE_DEBUG=1 for cmake to pass -g3 to c++ for a debug build,
i have NO idea if this is a good way to do it,
somebody who knows cmake better might know a better way,
but it works.