Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
@@ -0,0 +1,23 @@
# - build library
link_directories (${GEANT4_LIBRARY_DIR})
# library
set(_TARGET ParticleGun)
add_library(
${_TARGET} SHARED
ParticleGunAction.cc
pyParticleGun.cc
)
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
set_target_properties(${_TARGET}
PROPERTIES INSTALL_RPATH
${GEANT4_LIBRARY_DIR}
BUILD_WITH_INSTALL_RPATH TRUE)
target_link_libraries (${_TARGET}
${GEANT4_LIBRARIES_WITH_VIS} boost_python)
# install
install(TARGETS ${_TARGET} LIBRARY DESTINATION ${G4SITEMODULES_INSTALL_DIR})
@@ -1,5 +1,4 @@
# $Id: GNUmakefile,v 1.2 2006-04-25 10:29:52 kmura Exp $
# $Name: not supported by cvs2svn $
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
# ===========================================================
# Makefile for building Geant4Py modules
# ===========================================================
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: ParticleGunAction.cc,v 1.4 2006-06-29 15:30:16 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: ParticleGunAction.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// ParticleGunAction.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: ParticleGunAction.hh,v 1.4 2006-06-29 15:30:19 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: ParticleGunAction.hh 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// ParticleGunAction.hh
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyParticleGun.cc,v 1.4 2006-06-29 15:30:21 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyParticleGun.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyParticleGun.cc
//
@@ -53,11 +52,11 @@ G4ParticleGun* Construct()
ParticleGunAction* pga= new ParticleGunAction;
runMgr-> SetUserAction(pga);
return pga-> GetParticleGun();
}
};
}
using namespace pyParticleGun;
@@ -74,7 +73,7 @@ BOOST_PYTHON_MODULE(ParticleGun) {
;
// ---
def("Construct", Construct,
def("Construct", Construct,
return_value_policy<reference_existing_object>());
}