Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -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>());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user