Files
geant4/source/global/management/sources.cmake
T
2020-06-26 10:23:25 +02:00

162 lines
4.1 KiB
CMake

#------------------------------------------------------------------------------
# Module : G4globman
# Package: Geant4.src.G4global.G4globman
#------------------------------------------------------------------------------
# Configure header for preprocessor symbols
#
# Convert CMake variables -> #cmakedefine symbols
set(G4MULTITHREADED ${GEANT4_BUILD_MULTITHREADED})
set(G4_STORE_TRAJECTORY ${GEANT4_BUILD_STORE_TRAJECTORY})
set(G4VERBOSE ${GEANT4_BUILD_VERBOSE_CODE})
configure_file(${CMAKE_CURRENT_LIST_DIR}/include/G4GlobalConfig.hh.in
${CMAKE_CURRENT_BINARY_DIR}/include/G4GlobalConfig.hh
)
# WORKAROUND: When building/testing examples uing ROOT, ROOT's
# dictionary generation is not smart enough to handle target usage
# requirements for include paths. Explicitly add the path to the
# generated header into build time include paths...
set_property(GLOBAL APPEND
PROPERTY GEANT4_BUILDTREE_INCLUDE_DIRS "${CMAKE_CURRENT_BINARY_DIR}/include")
#
# Define the Geant4 Module.
#
geant4_define_module(NAME G4globman
HEADERS
${CMAKE_CURRENT_BINARY_DIR}/include/G4GlobalConfig.hh
globals.hh
templates.hh
tls.hh
windefs.hh
G4Allocator.hh
G4AutoDelete.hh
G4ios.hh
G4coutDestination.hh
G4coutFormatters.hh
G4strstreambuf.hh
G4strstreambuf.icc
G4AllocatorPool.hh
G4AllocatorList.hh
G4ApplicationState.hh
G4AutoLock.hh
G4BuffercoutDestination.hh
G4Cache.hh
G4CacheDetails.hh
G4DataVector.hh
G4DataVector.icc
G4EnvironmentUtils.hh
G4ErrorPropagatorData.hh
G4ErrorPropagatorData.icc
G4Evaluator.hh
G4Exception.hh
G4ExceptionSeverity.hh
G4Exp.hh
G4FilecoutDestination.hh
G4FPEDetection.hh
G4FastVector.hh
G4GeometryTolerance.hh
G4LockcoutDestination.hh
G4Log.hh
G4LPhysicsFreeVector.hh
G4MasterForwardcoutDestination.hh
G4MTBarrier.hh
G4MTcoutDestination.hh
G4MulticoutDestination.hh
G4OrderedTable.hh
G4PhysicalConstants.hh
G4PhysicsFreeVector.hh
G4PhysicsLinearVector.hh
G4PhysicsLnVector.hh
G4PhysicsLogVector.hh
G4PhysicsModelCatalog.hh
G4PhysicsOrderedFreeVector.hh
G4PhysicsTable.hh
G4PhysicsTable.icc
G4PhysicsVector.hh
G4PhysicsVector.icc
G4PhysicsVectorType.hh
G4Physics2DVector.hh
G4Physics2DVector.icc
G4Pow.hh
G4ReferenceCountedHandle.hh
G4RotationMatrix.hh
G4SIunits.hh
G4SliceTimer.hh
G4SliceTimer.icc
G4StateManager.hh
G4StateManager.icc
G4String.hh
G4String.icc
G4SystemOfUnits.hh
G4Threading.hh
G4ThreadLocalSingleton.hh
G4ThreeVector.hh
G4TiMemory.hh
G4Timer.hh
G4Timer.icc
G4Tokenizer.hh
G4TWorkspacePool.hh
G4TwoVector.hh
G4Types.hh
G4UnitsTable.hh
G4UnitsTable.icc
G4UserLimits.hh
G4UserLimits.icc
G4Version.hh
G4VExceptionHandler.hh
G4VNotifier.hh
G4VStateDependent.hh
SOURCES
G4Allocator.cc
G4AllocatorPool.cc
G4AllocatorList.cc
G4BuffercoutDestination.cc
G4CacheDetails.cc
G4coutDestination.cc
G4coutFormatters.cc
G4DataVector.cc
G4ErrorPropagatorData.cc
G4Exception.cc
G4FilecoutDestination.cc
G4GeometryTolerance.cc
G4ios.cc
G4LockcoutDestination.cc
G4LPhysicsFreeVector.cc
G4MasterForwardcoutDestination.cc
G4MTBarrier.cc
G4MTcoutDestination.cc
G4OrderedTable.cc
G4PhysicsFreeVector.cc
G4PhysicsLinearVector.cc
G4PhysicsLogVector.cc
G4PhysicsModelCatalog.cc
G4PhysicsOrderedFreeVector.cc
G4PhysicsTable.cc
G4PhysicsVector.cc
G4Physics2DVector.cc
G4Pow.cc
G4ReferenceCountedHandle.cc
G4SliceTimer.cc
G4StateManager.cc
G4Threading.cc
G4Timer.cc
G4UnitsTable.cc
G4VExceptionHandler.cc
G4VNotifier.cc
G4VStateDependent.cc
LINK_LIBRARIES
${CLHEP_LIBRARIES}
${timemory_LIBRARIES}
)
# List any source specific properties here
# For new system, must explicitly add path for generated header
if(GEANT4_USE_NEW_CMAKE)
geant4_module_include_directories(G4globman
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
)
endif()