Fatal error: TRandom3.h: No such file or directory #include <TRandom3.h>

I assume you are trying to link ROOT libraries into your Geant4 project.

What does your CMakeLists.txt look like? Did you appropriately update the search paths for include files?

Have you looked at this example?

Also just as an FYI here is how to post code snippets, including errors: