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