I tried to use FindROOT.cmake located in /etc/cmake. I encountered errors repeated like this:
CMake Error at /opt/daq/share/cmake/FindROOT.cmake:46 (list):
list sub-command REMOVE_ITEM requires list to be present.
Call Stack (most recent call first):
CMakeLists.txt:55 (include)
...
Another problem: If I use “LINKDEF” in “root_generate_dictionary”, then I will fail in error like this
[ 65%] Built target Analyzer
make[2]: *** No rule to make target '../libAnalyzerDisplay/linkFile-NOTFOUND', needed by 'libAnalyzerDisplay/TFancyHistogramCanvasDict.cxx'
It seems that “root_generate_dictionary” cannot handle the argument “*_LinkDef.h”