Older Root Package

Your “CMakelists.txt” file does not use ROOT at all:

BTW. You need to have ROOT and Geant4 built so that they all use the same C++ standard (i.e., C++11 or C++14 or C++17): ROOT Forum → Search → Geant4 C++ standard