Adding support of Geant4 with CLHEP enabled
requested to merge Pierre.Blondeau/nptool:Pierre.Blondeau-NPTool.2.dev-patch-22662 into NPTool.2.dev
When compile NPSimulation with Geant4 that as CLHEP enabled we got this error :
[ 9%] Building CXX object EventGenerator/CMakeFiles/NPSEventGenerator.dir/EventGeneratorBeam.cc.o
In file included from /opt/geant4-v11.1.3.1/install/include/Geant4/G4ParticleTable.hh:52,
from /home/paxman/Programs/nptoolv3/NPSimulation/EventGenerator/EventGeneratorBeam.cc:27:
/opt/geant4-v11.1.3.1/install/include/Geant4/G4ParticleDefinition.hh:46:10: fatal error: CLHEP/Units/PhysicalConstants.h: No such file or directory
46 | #include <CLHEP/Units/PhysicalConstants.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
This is because CLHEP Includes aren't inside Geant4 directory. So, I add the directory of the included to solved the problem.
Regards
PS : Thank to John Frankland, Dominique Touchard, Charlie Paxman