Geant4 Cross Reference |
1 # - G4RayTracer module build definition << 1 #------------------------------------------------------------------------------ >> 2 # Module : G4RayTracer >> 3 # Package: Geant4.src.G4visualization.G4RayTracer >> 4 #------------------------------------------------------------------------------ >> 5 >> 6 # >> 7 # Module has optional sources >> 8 # >> 9 # List those always built >> 10 set(G4VIS_RAYTRACER_MODULE_HEADERS >> 11 G4RTJpeg.hh >> 12 G4RTJpegCoder.hh >> 13 G4RTJpegCoderTables.hh >> 14 G4RTJpegMaker.hh >> 15 G4RTMessenger.hh >> 16 G4RTOutBitStream.hh >> 17 G4RTPrimaryGeneratorAction.hh >> 18 G4RTRun.hh >> 19 G4RTRunAction.hh >> 20 G4RTSimpleScanner.hh >> 21 G4RTSteppingAction.hh >> 22 G4RTTrackingAction.hh >> 23 G4RTWorkerInitialization.hh >> 24 G4RayTracer.hh >> 25 G4RayTracerFeatures.hh >> 26 G4RayTracerSceneHandler.hh >> 27 G4RayTracerViewer.hh >> 28 G4RayTrajectory.hh >> 29 G4RayTrajectoryPoint.hh >> 30 G4TheMTRayTracer.hh >> 31 G4TheRayTracer.hh >> 32 G4VFigureFileMaker.hh >> 33 G4VRTScanner.hh) >> 34 >> 35 set(G4VIS_RAYTRACER_MODULE_SOURCES >> 36 G4RTJpegCoder.cc >> 37 G4RTJpegMaker.cc >> 38 G4RTMessenger.cc >> 39 G4RTOutBitStream.cc >> 40 G4RTPrimaryGeneratorAction.cc >> 41 G4RTRun.cc >> 42 G4RTRunAction.cc >> 43 G4RTSimpleScanner.cc >> 44 G4RTSteppingAction.cc >> 45 G4RTTrackingAction.cc >> 46 G4RTWorkerInitialization.cc >> 47 G4RayTracer.cc >> 48 G4RayTracerSceneHandler.cc >> 49 G4RayTracerViewer.cc >> 50 G4RayTrajectory.cc >> 51 G4RayTrajectoryPoint.cc >> 52 G4TheMTRayTracer.cc >> 53 G4TheRayTracer.cc >> 54 G4VRTScanner.cc) 2 55 3 # Define the Geant4 Module. << 56 set(G4VIS_RAYTRACER_MODULE_LINK_LIBRARIES ) 4 geant4_add_module(G4RayTracer << 5 PUBLIC_HEADERS << 6 G4RayTracer.hh << 7 PRIVATE_HEADERS << 8 G4RTJpeg.hh << 9 G4RTJpegCoder.hh << 10 G4RTJpegCoderTables.hh << 11 G4RTJpegMaker.hh << 12 G4RTMessenger.hh << 13 G4RTOutBitStream.hh << 14 G4RTPrimaryGeneratorAction.hh << 15 G4RTRun.hh << 16 G4RTRunAction.hh << 17 G4RTSimpleScanner.hh << 18 G4RTSteppingAction.hh << 19 G4RTTrackingAction.hh << 20 G4RTWorkerInitialization.hh << 21 G4RayTracerFeatures.hh << 22 G4RayTracerSceneHandler.hh << 23 G4RayTracerViewer.hh << 24 G4RayTrajectory.hh << 25 G4RayTrajectoryPoint.hh << 26 G4TheMTRayTracer.hh << 27 G4TheRayTracer.hh << 28 G4VFigureFileMaker.hh << 29 G4VRTScanner.hh << 30 SOURCES << 31 G4RTJpegCoder.cc << 32 G4RTJpegMaker.cc << 33 G4RTMessenger.cc << 34 G4RTOutBitStream.cc << 35 G4RTPrimaryGeneratorAction.cc << 36 G4RTRun.cc << 37 G4RTRunAction.cc << 38 G4RTSimpleScanner.cc << 39 G4RTSteppingAction.cc << 40 G4RTTrackingAction.cc << 41 G4RTWorkerInitialization.cc << 42 G4RayTracer.cc << 43 G4RayTracerSceneHandler.cc << 44 G4RayTracerViewer.cc << 45 G4RayTrajectory.cc << 46 G4RayTrajectoryPoint.cc << 47 G4TheMTRayTracer.cc << 48 G4TheRayTracer.cc << 49 G4VRTScanner.cc) << 50 57 51 geant4_module_compile_definitions(G4RayTracer << 58 # >> 59 # X11 RayTracer only if selected >> 60 # >> 61 if(GEANT4_USE_RAYTRACER_X11) >> 62 list(APPEND G4VIS_RAYTRACER_MODULE_HEADERS >> 63 G4RayTracerX.hh >> 64 G4RayTracerXViewer.hh >> 65 G4RTXScanner.hh) >> 66 >> 67 list(APPEND G4VIS_RAYTRACER_MODULE_SOURCES >> 68 G4RayTracerX.cc >> 69 G4RayTracerXViewer.cc >> 70 G4RTXScanner.cc) >> 71 >> 72 # >> 73 # Add source properties and additional LINK_LIBRARIES here >> 74 # >> 75 # Must use G4VIS_BUILD_RAYTRACERX_DRIVER define >> 76 add_definitions(-DG4VIS_BUILD_RAYTRACERX_DRIVER) 52 77 53 geant4_module_link_libraries(G4RayTracer << 78 # The X11 Libraries 54 PUBLIC << 79 list(APPEND G4VIS_RAYTRACER_MODULE_LINK_LIBRARIES X11::SM X11::ICE X11::X11 X11::Xext X11::Xmu) 55 G4vis_management << 80 endif() 56 PRIVATE << 81 >> 82 # >> 83 # Define the Geant4 Module. >> 84 # >> 85 geant4_define_module(NAME G4RayTracer >> 86 HEADERS >> 87 ${G4VIS_RAYTRACER_MODULE_HEADERS} >> 88 SOURCES >> 89 ${G4VIS_RAYTRACER_MODULE_SOURCES} >> 90 GRANULAR_DEPENDENCIES 57 G4bosons 91 G4bosons 58 G4cuts 92 G4cuts 59 G4detector 93 G4detector >> 94 G4digits 60 G4event 95 G4event >> 96 G4geometrymng 61 G4globman 97 G4globman 62 G4graphics_reps 98 G4graphics_reps 63 G4geometrymng << 64 G4hepgeometry << 65 G4hits 99 G4hits 66 G4intercoms 100 G4intercoms >> 101 G4materials 67 G4modeling 102 G4modeling >> 103 G4navigation 68 G4partman 104 G4partman 69 G4procman 105 G4procman 70 G4run << 71 G4scoring << 72 G4track 106 G4track 73 G4tracking 107 G4tracking 74 G4navigation) << 108 G4vis_management 75 << 109 G4volumes 76 # X11 RayTracer only if selected << 110 GLOBAL_DEPENDENCIES 77 if(GEANT4_USE_RAYTRACER_X11) << 111 G4digits_hits 78 geant4_module_sources(G4RayTracer << 112 G4event 79 PUBLIC_HEADERS << 113 G4geometry 80 G4RayTracerX.hh << 114 G4global 81 PRIVATE_HEADERS << 115 G4graphics_reps 82 G4RayTracerXViewer.hh << 116 G4intercoms 83 G4RTXScanner.hh << 117 G4materials 84 SOURCES << 118 G4modeling 85 G4RayTracerX.cc << 119 G4particles 86 G4RayTracerXViewer.cc << 120 G4processes 87 G4RTXScanner.cc) << 121 G4track 88 << 122 G4tracking 89 geant4_module_compile_definitions(G4RayTrace << 123 G4vis_management >> 124 LINK_LIBRARIES >> 125 ${G4VIS_RAYTRACER_MODULE_LINK_LIBRARIES} >> 126 ) 90 127 91 geant4_module_link_libraries(G4RayTracer PRI << 128 # List any source specific properties here 92 endif() <<