Import Geant4 10.6.2 source tree
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
# - build library
|
||||
|
||||
# library
|
||||
set(_TARGET pyG4processes)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
geant4_add_pymodule(pyG4processes
|
||||
pyG4CrossSectionHandler.cc
|
||||
pyG4EmCalculator.cc
|
||||
pyG4ProcVector.cc
|
||||
@@ -16,17 +14,5 @@ add_library(
|
||||
pymodG4processes.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "G4processes")
|
||||
set_target_properties(${_TARGET} PROPERTIES SUFFIX ".so")
|
||||
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_LIB}
|
||||
${PYTHON_LIBRARIES})
|
||||
|
||||
# install
|
||||
install(TARGETS ${_TARGET} LIBRARY DESTINATION ${G4MODULES_INSTALL_DIR})
|
||||
target_link_libraries(pyG4processes PRIVATE G4processes pyG4Boost)
|
||||
install(TARGETS pyG4processes DESTINATION "${CMAKE_INSTALL_PYTHONDIR}/Geant4")
|
||||
|
||||
@@ -34,6 +34,7 @@ class G4UImessenger;
|
||||
|
||||
using namespace boost::python;
|
||||
|
||||
|
||||
// ====================================================================
|
||||
// thin wrappers
|
||||
// ====================================================================
|
||||
@@ -142,8 +143,8 @@ using namespace pyG4ProcessTable;
|
||||
// ====================================================================
|
||||
void export_G4ProcessTable()
|
||||
{
|
||||
class_<G4ProcessTable, G4ProcessTable*, boost::noncopyable>
|
||||
("G4ProcessTable", "process table")
|
||||
class_<G4ProcessTable, boost::noncopyable>
|
||||
("G4ProcessTable", "process table", no_init)
|
||||
// ---
|
||||
.def("GetProcessTable", &G4ProcessTable::GetProcessTable,
|
||||
return_value_policy<reference_existing_object>())
|
||||
|
||||
Reference in New Issue
Block a user