Import Geant4 10.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2017-12-08 12:52:30 +01:00
parent 98e455a940
commit fc6af9e721
2166 changed files with 276760 additions and 100873 deletions
@@ -0,0 +1,54 @@
# - Find Geant4 library
# This module sets up Geant4 information
# It defines:
# GEANT4_FOUND If the Geant4 is found
# GEANT4_INCLUDE_DIR PATH to the include directory
# GEANT4_LIBRARY_DIR PATH to the library directory
# GEANT4_LIBRARIES Most common libraries
# GEANT4_LIBRARIES_WITH_VIS Most common libraries with visualization
find_program(GEANT4_CONFIG NAMES geant4-config
PATHS $ENV{GEANT4_INSTALL}/bin
${GEANT4_INSTALL}/bin
/usr/local/bin /opt/local/bin)
if(GEANT4_CONFIG)
set(GEANT4_FOUND TRUE)
execute_process(COMMAND ${GEANT4_CONFIG} --prefix
OUTPUT_VARIABLE GEANT4_PREFIX
OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ${GEANT4_CONFIG} --version
OUTPUT_VARIABLE GEANT4_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)
message(STATUS "Found Geant4: ${GEANT4_PREFIX} (${GEANT4_VERSION})")
else()
set(GEANT4_FOUND FALSE)
if (Geant4_FIND_REQUIRED)
message(FATAL_ERROR "NOT Found Geant4: set GEANT4_INSTALL.")
else()
message(WARNING "NOT Found Geant4: set GEANT4_INSTALL.")
endif()
endif()
set(GEANT4_INCLUDE_DIR ${GEANT4_PREFIX}/include/Geant4)
set(GEANT4_LIBRARY_DIR ${GEANT4_PREFIX}/${_LIBDIR_DEFAULT})
set(GEANT4_LIBRARIES G4interfaces G4persistency G4analysis
G4error_propagation G4readout G4physicslists
G4run G4event G4tracking G4parmodels G4processes
G4digits_hits G4track G4particles G4geometry
G4materials G4graphics_reps G4intercoms
G4global G4clhep G4zlib)
set(GEANT4_LIBRARIES_WITH_VIS
G4OpenGL G4gl2ps G4Tree G4FR G4GMocren G4visHepRep
G4RayTracer G4VRML G4vis_management G4modeling
G4interfaces G4persistency G4analysis
G4error_propagation G4readout G4physicslists
G4run G4event G4tracking G4parmodels G4processes
G4digits_hits G4track G4particles G4geometry
G4materials G4graphics_reps G4intercoms
G4global G4clhep G4zlib)
@@ -0,0 +1,45 @@
# - Find ZMQ library
#
# It defines:
# ZMQ_FOUND If the ZeroMQ is found
# ZMQ_INCLUDE_DIRS PATH to the include directory
# ZMQ_LIBRARIES libraries
#
# ZMQ_DIR is used for guessing the installed path.
#
message("-- Detecting ZeroMQ package")
find_package(PkgConfig QUIET)
pkg_check_modules(ZMQ QUIET zmq)
if(PC_ZMQ_FOUND)
set(ZMQ_FOUND 1)
else()
set(ZMQ_FOUND 0)
endif()
# find include path
find_path(ZMQ_INCLUDE_DIRS zmq.hpp
HINTS /usr/include ${ZMQ_DIR}/include ${PC_ZMQ_INCLUDE_DIRS})
if(ZMQ_INCLUDE_DIRS MATCHES "^.*-NOTFOUND")
set(ZMQ_FOUND 0)
endif()
# find library
find_library(ZMQ_LIBRARIES NAMES zmq
PATHS /usr/lib64 /usr/lib
${ZMQ_DIR}/lib64 ${ZMQ_DIR}/lib ${PC_ZMQ_LIBRARY_DIRS})
if(ZMQ_LIBRARIES MATCHES "^.*-NOTFOUND")
set(ZMQ_FOUND 0)
endif()
#
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ZMQ DEFAULT_MSG
ZMQ_INCLUDE_DIRS ZMQ_LIBRARIES)
mark_as_advanced(ZMQ_INCLUDE_DIRS ZMQ_LIBRARY_DIRS ZMQ_LIBRARIES)
message("-- Detecting ZMQ package - done")