Geant4 Cross Reference |
1 # - G4FR module build definition << 1 #------------------------------------------------------------------------------ >> 2 # sources.cmake >> 3 # Module : G4FR >> 4 # Package: Geant4.src.G4visualization.G4FR >> 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 # >> 15 #------------------------------------------------------------------------------ 2 16 3 # Define the Geant4 Module. << 17 # List external includes needed. 4 geant4_add_module(G4FR << 18 include_directories(${CLHEP_INCLUDE_DIRS}) 5 PUBLIC_HEADERS << 19 include_directories(${USOLIDS_INCLUDE_DIRS}) >> 20 >> 21 # List internal includes needed. >> 22 include_directories(${CMAKE_SOURCE_DIR}/source/digits_hits/hits/include) >> 23 include_directories(${CMAKE_SOURCE_DIR}/source/geometry/management/include) >> 24 include_directories(${CMAKE_SOURCE_DIR}/source/geometry/solids/CSG/include) >> 25 include_directories(${CMAKE_SOURCE_DIR}/source/geometry/solids/specific/include) >> 26 include_directories(${CMAKE_SOURCE_DIR}/source/global/HEPGeometry/include) >> 27 include_directories(${CMAKE_SOURCE_DIR}/source/global/management/include) >> 28 include_directories(${CMAKE_SOURCE_DIR}/source/graphics_reps/include) >> 29 include_directories(${CMAKE_SOURCE_DIR}/source/intercoms/include) >> 30 include_directories(${CMAKE_SOURCE_DIR}/source/visualization/management/include) >> 31 include_directories(${CMAKE_SOURCE_DIR}/source/visualization/modeling/include) >> 32 >> 33 >> 34 # >> 35 # Module has optional sources >> 36 # >> 37 include(Geant4MacroDefineModule) >> 38 >> 39 # List those always built >> 40 set(G4VIS_DAWN_MODULE_HEADERS 6 G4DAWNFILE.hh 41 G4DAWNFILE.hh 7 PRIVATE_HEADERS << 8 G4DAWNFILESceneHandler.hh 42 G4DAWNFILESceneHandler.hh 9 G4DAWNFILEViewer.hh 43 G4DAWNFILEViewer.hh 10 G4FRConst.hh 44 G4FRConst.hh >> 45 G4FRFeatures.hh 11 G4FRSceneFunc.icc 46 G4FRSceneFunc.icc 12 G4FRofstream.hh 47 G4FRofstream.hh 13 G4VisFeaturesOfDAWNFILE.hh 48 G4VisFeaturesOfDAWNFILE.hh 14 SOURCES << 49 G4VisFeaturesOfFukuiRenderer.hh) >> 50 >> 51 set(G4VIS_DAWN_MODULE_SOURCES 15 G4DAWNFILE.cc 52 G4DAWNFILE.cc 16 G4DAWNFILESceneHandler.cc 53 G4DAWNFILESceneHandler.cc 17 G4DAWNFILEViewer.cc 54 G4DAWNFILEViewer.cc 18 G4VisFeaturesOfDAWNFILE.cc) << 55 G4VisFeaturesOfDAWNFILE.cc >> 56 G4VisFeaturesOfFukuiRenderer.cc) >> 57 >> 58 # >> 59 # DAWN Network driver only built if user selected >> 60 # >> 61 if(GEANT4_USE_NETWORKDAWN) >> 62 list(APPEND G4VIS_DAWN_MODULE_HEADERS >> 63 G4FRClientServer.hh >> 64 G4FukuiRenderer.hh >> 65 G4FukuiRendererSceneHandler.hh >> 66 G4FukuiRendererViewer.hh) >> 67 >> 68 list(APPEND G4VIS_DAWN_MODULE_SOURCES >> 69 G4FRClientServer.cc >> 70 G4FukuiRenderer.cc >> 71 G4FukuiRendererSceneHandler.cc >> 72 G4FukuiRendererViewer.cc) >> 73 >> 74 # To activate the Fukui Renderer Network component, we need an >> 75 # extra compile definition >> 76 GEANT4_ADD_COMPILE_DEFINITIONS(SOURCES ${G4VIS_DAWN_MODULE_SOURCES} >> 77 COMPILE_DEFINITIONS G4VIS_BUILD_DAWN_DRIVER) >> 78 endif() >> 79 >> 80 >> 81 >> 82 # >> 83 # Define the Geant4 Module. >> 84 # >> 85 GEANT4_DEFINE_MODULE(NAME G4FR >> 86 HEADERS >> 87 ${G4VIS_DAWN_MODULE_HEADERS} >> 88 SOURCES >> 89 ${G4VIS_DAWN_MODULE_SOURCES} >> 90 GRANULAR_DEPENDENCIES >> 91 G4csg >> 92 G4geometrymng >> 93 G4globman >> 94 G4graphics_reps >> 95 G4hits >> 96 G4intercoms >> 97 G4modeling >> 98 G4specsolids >> 99 G4vis_management >> 100 GLOBAL_DEPENDENCIES >> 101 G4digits_hits >> 102 G4geometry >> 103 G4global >> 104 G4graphics_reps >> 105 G4intercoms >> 106 G4modeling >> 107 G4vis_management >> 108 LINK_LIBRARIES >> 109 ) 19 110 20 geant4_module_link_libraries(G4FR << 111 # List any source specific properties here 21 PUBLIC << 22 G4vis_management << 23 PRIVATE << 24 G4csg << 25 G4geometrymng << 26 G4globman << 27 G4graphics_reps << 28 G4hepgeometry << 29 G4modeling) << 30 112