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 66870 2013-01-14 23:38:59Z adotti $ >> 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 >> 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 14 SOURCES << 49 set(G4VIS_DAWN_MODULE_SOURCES 15 G4DAWNFILE.cc 50 G4DAWNFILE.cc 16 G4DAWNFILESceneHandler.cc 51 G4DAWNFILESceneHandler.cc 17 G4DAWNFILEViewer.cc << 52 G4DAWNFILEViewer.cc) 18 G4VisFeaturesOfDAWNFILE.cc) << 53 >> 54 # >> 55 # DAWN Network driver only built if user selected >> 56 # >> 57 if(GEANT4_USE_NETWORKDAWN) >> 58 list(APPEND G4VIS_DAWN_MODULE_HEADERS >> 59 G4FRClientServer.hh >> 60 G4FukuiRenderer.hh >> 61 G4FukuiRendererSceneHandler.hh >> 62 G4FukuiRendererViewer.hh) >> 63 >> 64 list(APPEND G4VIS_DAWN_MODULE_SOURCES >> 65 G4FRClientServer.cc >> 66 G4FukuiRenderer.cc >> 67 G4FukuiRendererSceneHandler.cc >> 68 G4FukuiRendererViewer.cc) >> 69 >> 70 # To activate the Fukui Renderer Network component, we need an >> 71 # extra compile definition >> 72 GEANT4_ADD_COMPILE_DEFINITIONS(SOURCES ${G4VIS_DAWN_MODULE_SOURCES} >> 73 COMPILE_DEFINITIONS G4VIS_BUILD_DAWN_DRIVER) >> 74 endif() >> 75 >> 76 >> 77 >> 78 # >> 79 # Define the Geant4 Module. >> 80 # >> 81 GEANT4_DEFINE_MODULE(NAME G4FR >> 82 HEADERS >> 83 ${G4VIS_DAWN_MODULE_HEADERS} >> 84 SOURCES >> 85 ${G4VIS_DAWN_MODULE_SOURCES} >> 86 GRANULAR_DEPENDENCIES >> 87 G4csg >> 88 G4geometrymng >> 89 G4globman >> 90 G4graphics_reps >> 91 G4hits >> 92 G4intercoms >> 93 G4modeling >> 94 G4specsolids >> 95 G4vis_management >> 96 GLOBAL_DEPENDENCIES >> 97 G4digits_hits >> 98 G4geometry >> 99 G4global >> 100 G4graphics_reps >> 101 G4intercoms >> 102 G4modeling >> 103 G4vis_management >> 104 LINK_LIBRARIES >> 105 ) 19 106 20 geant4_module_link_libraries(G4FR << 107 # 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 108