When integrating ROOT libraries in a standalone C++ CMake project, I sometimes miss the flexibility that the scripts and cling interpreter gives you.
I had the idea of porting the official ROOT GUI tutorial tutorials/guiWithCINT.C into a CMake project. The tutorial opened with root works fine.
However, in the CMake version, it only works if I remove the function prompt = ((TRint*)gROOT->GetApplication())->GetPrompt(), otherwise it gives an error. Has someone an idea on how to avoid this error without needing to remove this function?
Another issue I have seen is that the ‘X’ of the window does not call CloseWindow any more in the standalone version, while in the other it does.