So first of all - the crash is very likely unrelated; you might want to use a debugger to find out what the problem is.
Even if madanalysis is the binary you run, it should still support ROOT_INCLUDE_PATH… But you need to specify ROOT_INCLUDE_PATH pointing to the directory that contains ExRootAnalysis/ExRootTreeReader.h (i.e. the parent directory of ExRootAnalysis).