Geant4 Cross Reference |
1 # - G4event category build << 1 #------------------------------------------------------------------------------ 2 include(sources.cmake) << 2 # CMakeLists.txt 3 geant4_add_category(G4event MODULES G4event) << 3 # Module : G4event >> 4 # Package: Geant4.src.G4event >> 5 # >> 6 # CMakeLists.txt for single level library that may be build global or granular >> 7 # >> 8 # Generated on : 24/9/2010 >> 9 # >> 10 # >> 11 #------------------------------------------------------------------------------ >> 12 >> 13 # Add allocation export symbol for the event category >> 14 add_definitions(-DG4EVENT_ALLOC_EXPORT) >> 15 ########add_definitions(-DG4_USESMARTSTACK) >> 16 >> 17 include(Geant4MacroLibraryTargets) >> 18 if(GEANT4_BUILD_GRANULAR_LIBS) >> 19 GEANT4_GRANULAR_LIBRARY_TARGET(COMPONENT sources.cmake) >> 20 else() >> 21 GEANT4_GLOBAL_LIBRARY_TARGET(COMPONENTS sources.cmake) >> 22 endif() >> 23 >> 24 # Enable smart stack >> 25 if(GEANT4_USE_SMARTSTACK) >> 26 if(TARGET G4event) >> 27 target_compile_definitions(G4event PUBLIC G4_USESMARTSTACK) >> 28 endif() >> 29 >> 30 if(TARGET G4event-static) >> 31 target_compile_definitions(G4event-static PUBLIC G4_USESMARTSTACK) >> 32 endif() >> 33 endif()