# - Try to find GEANT4VMC # Once done this will define # # GEANT4VMC_FOUND - system has GEANT3 # GEANT4VMC_INCLUDE_DIR - the GEANT3 include directory # GEANT4VMC_LIBRARIES - The libraries needed to use GEANT3 # GEANT4VMC_DEFINITIONS - Compiler switches required for using GEANT3 # if (GEANT4VMC_INCLUDE_DIR AND GEANT4VMC_LIBRARY_DIR) SET (GEANT4VMC_INCLUDE_DIR GEANT4VMC_INCLUDE_DIR-NOTFOUND) SET (GEANT4VMC_LIB_DIR GEANT4VMC_LIB_DIR-NOTFOUND) SET (GEANT4VMC_PLISTS_LIB_DIR GEANT4VMC_PLISTS_LIB_DIR-NOTFOUND) endif (GEANT4VMC_INCLUDE_DIR AND GEANT4VMC_LIBRARY_DIR) FIND_PATH(GEANT4VMC_INCLUDE_DIR NAMES TG4G3Units.h PATHS /misc/cbmsoft/Debian3.1/transport/geant4_vmc/include ${ROOTSIM}/transport/geant4_vmc/include NO_DEFAULT_PATH ) set(GEANT4VMC_INCLUDE_DIR /misc/cbmsoft/Debian3.1/transport/geant4_vmc/source/global/include /misc/cbmsoft/Debian3.1/transport/geant4_vmc/source/geometry/include /misc/cbmsoft/Debian3.1/transport/geant4_vmc/source/digits+hits/include /misc/cbmsoft/Debian3.1/transport/geant4_vmc/source/physics/include /misc/cbmsoft/Debian3.1/transport/geant4_vmc/source/event/include /misc/cbmsoft/Debian3.1/transport/geant4_vmc/source/run/include /misc/cbmsoft/Debian3.1/transport/geant4_vmc/source/interfaces/include /misc/cbmsoft/Debian3.1/transport/geant4_vmc/source/visualization/include /misc/cbmsoft/Debian3.1/transport/vgm/packages/BaseVGM/include /misc/cbmsoft/Debian3.1/transport/vgm/packages/ClhepVGM/include /misc/cbmsoft/Debian3.1/transport/vgm/packages/Geant4GM/include /misc/cbmsoft/Debian3.1/transport/vgm/packages/RootGM/include /misc/cbmsoft/Debian3.1/transport/vgm/packages/VGM/include /misc/cbmsoft/Debian3.1/transport/vgm/packages/XmlVGM/include ${ROOTSIM}/transport/geant4_vmc/source/global/include ${ROOTSIM}/transport/geant4_vmc/source/geometry/include ${ROOTSIM}/transport/geant4_vmc/source/digits+hits/include ${ROOTSIM}/transport/geant4_vmc/source/physics/include ${ROOTSIM}/transport/geant4_vmc/source/event/include ${ROOTSIM}/transport/geant4_vmc/source/run/include ${ROOTSIM}/transport/geant4_vmc/source/interfaces/include ${ROOTSIM}/transport/geant4_vmc/source/visualization/include ${ROOTSIM}/transport/vgm/packages/BaseVGM/include ${ROOTSIM}/transport/vgm/packages/ClhepVGM/include ${ROOTSIM}/transport/vgm/packages/Geant4GM/include ${ROOTSIM}/transport/vgm/packages/RootGM/include ${ROOTSIM}/transport/vgm/packages/VGM/include ${ROOTSIM}/transport/vgm/packages/XmlVGM/include ) FIND_PATH(GEANT4VMC_LIBRARY_DIR NAMES libgeant4vmc.so PATHS /misc/cbmsoft/Debian3.1/transport/geant4_vmc/lib/tgt_linux ${ROOTSIM}/transport/geant4_vmc/lib/tgt_linux NO_DEFAULT_PATH ) if (GEANT4VMC_INCLUDE_DIR AND GEANT4VMC_LIBRARY_DIR) set(GEANT4VMC_FOUND TRUE) endif (GEANT4VMC_INCLUDE_DIR AND GEANT4VMC_LIBRARY_DIR) if (GEANT4VMC_FOUND) if (NOT GEANT4VMC_FIND_QUIETLY) message(STATUS "Found GEANT4VMC: ${GEANT4VMC_LIBRARY_DIR}") SET(LD_LIBRARY_PATH ${LD_LIBRARY_PATH} ${GEANT4VMC_LIBRARY_DIR}) endif (NOT GEANT4VMC_FIND_QUIETLY) else (GEANT4VMC_FOUND) if (GEANT4VMC_FIND_REQUIRED) message(FATAL_ERROR "Could NOT find GEANT4VMC") endif (GEANT4VMC_FIND_REQUIRED) endif (GEANT4VMC_FOUND)