Geant4 Cross Reference |
1 # - G4global category build(s) << 1 #----------------------------------------------------------------------- >> 2 # Module : G4global >> 3 # Package: Geant4.src.G4global >> 4 #----------------------------------------------------------------------- >> 5 >> 6 # Add allocation export symbol for the global category 2 add_definitions(-DG4GLOB_ALLOC_EXPORT) 7 add_definitions(-DG4GLOB_ALLOC_EXPORT) 3 8 4 include(HEPGeometry/sources.cmake) << 9 geant4_global_library_target(NAME G4global 5 include(HEPNumerics/sources.cmake) << 10 COMPONENTS 6 include(HEPRandom/sources.cmake) << 11 HEPGeometry/sources.cmake 7 include(management/sources.cmake) << 12 HEPNumerics/sources.cmake >> 13 HEPRandom/sources.cmake >> 14 management/sources.cmake >> 15 ) >> 16 >> 17 # Temp hack to get "G4GlobalConfig.hh" generated header in include >> 18 # path for dependent targets >> 19 # TODO: Remove once migration to new module/library system in place. >> 20 # This will automatically set include paths >> 21 if(TARGET G4global) >> 22 target_include_directories(G4global PUBLIC >> 23 $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include> >> 24 ) >> 25 endif() 8 26 9 geant4_add_category(G4global MODULES << 27 if(TARGET G4global-static) 10 G4hepgeometry << 28 target_include_directories(G4global-static PUBLIC 11 G4hepnumerics << 29 $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include> 12 G4heprandom << 30 ) 13 G4globman ) << 31 endif()