Warning in <MyClass>: The data members of MyClass will not be stored, because it inherits from TObject but does not have its own ClassDef

Hmmm, but I do not have any LinkDef file in my CMake project.

As I just wanted a minimal GUI class deriving from TGMainFrame, I call the ROOT_GENERATE_DICTIONARY without using the LINKDEF argument, as done here:

Or is it a bad practice not to specify a LinkDef?