Root_generate_dictionary

Did you try with my version of CMakeLists.txt? Because the error you get is the same I had before using

set_property(TARGET ${name} PROPERTY ENABLE_EXPORTS 1)

And BTW, please read Posting code? Read this first!