Geant4 Cross Reference |
1 # - G4heprandom module build definition << 1 #------------------------------------------------------------------------------ >> 2 # sources.cmake >> 3 # Module : >> 4 # Package: Geant4.src.G4global. >> 5 # >> 6 # Sources description for a library. >> 7 # Lists the sources and headers of the code explicitely. >> 8 # Lists include paths needed. >> 9 # Lists the internal granular and global dependencies of the library. >> 10 # Source specific properties should be added at the end. >> 11 # >> 12 # Generated on : 24/9/2010 >> 13 # >> 14 # $Id: sources.cmake 72346 2013-07-16 12:11:02Z gcosmo $ >> 15 # >> 16 #------------------------------------------------------------------------------ 2 17 3 geant4_add_module(G4heprandom << 18 # List external includes needed. 4 PUBLIC_HEADERS << 19 include_directories(${CLHEP_INCLUDE_DIRS}) 5 G4Poisson.hh << 20 6 G4QuickRand.hh << 21 # List internal includes needed. 7 G4RandomDirection.hh << 22 include_directories(${CMAKE_SOURCE_DIR}/source/global/management/include) 8 G4RandomTools.hh << 23 9 G4UniformRandPool.hh << 24 # 10 Randomize.hh << 25 # Define the Geant4 Module. 11 SOURCES << 26 # 12 G4Poisson.cc << 27 13 G4UniformRandPool.cc) << 28 # The following are needed only in >> 29 # multi-threaded builds >> 30 set (_mtheaders "") >> 31 set (_mtsrcs "") >> 32 if(GEANT4_BUILD_MULTITHREADED) >> 33 set(_mtheaders ${_mtheaders} >> 34 G4MTHepRandom.hh >> 35 G4MTHepRandom.icc >> 36 G4MTRandBit.hh >> 37 G4MTRandBit.icc >> 38 G4MTRandExponential.hh >> 39 G4MTRandExponential.icc >> 40 G4MTRandFlat.hh >> 41 G4MTRandFlat.icc >> 42 G4MTRandGamma.hh >> 43 G4MTRandGamma.icc >> 44 G4MTRandGauss.hh >> 45 G4MTRandGauss.icc >> 46 G4MTRandGaussQ.hh >> 47 G4MTRandGaussQ.icc >> 48 G4MTRandGeneral.hh >> 49 G4MTRandGeneral.icc ) >> 50 set(_mtsrcs ${_mtsrcs} >> 51 G4MTHepRandom.cc >> 52 G4MTRandBit.cc >> 53 G4MTRandExponential.cc >> 54 G4MTRandFlat.cc >> 55 G4MTRandGamma.cc >> 56 G4MTRandGauss.cc >> 57 G4MTRandGaussQ.cc >> 58 G4MTRandGeneral.cc) >> 59 endif() >> 60 >> 61 include(Geant4MacroDefineModule) >> 62 GEANT4_DEFINE_MODULE(NAME G4heprandom >> 63 HEADERS >> 64 G4Poisson.hh >> 65 G4RandomDirection.hh >> 66 G4RandomTools.hh >> 67 Randomize.hh >> 68 ${_mtheaders} >> 69 SOURCES >> 70 ${_mtsrcs} >> 71 G4Poisson.cc >> 72 GRANULAR_DEPENDENCIES >> 73 GLOBAL_DEPENDENCIES >> 74 LINK_LIBRARIES >> 75 ) >> 76 >> 77 # List any source specific properties here 14 78 15 geant4_module_link_libraries(G4heprandom PUBLI <<