Geant4 Cross Reference |
1 # - G4RayTracer module build definition << 1 #------------------------------------------------------------------------------ 2 << 2 # sources.cmake 3 # Define the Geant4 Module. << 3 # Module : G4RayTracer 4 geant4_add_module(G4RayTracer << 4 # Package: Geant4.src.G4visualization.G4RayTracer 5 PUBLIC_HEADERS << 5 # 6 G4RayTracer.hh << 6 # Sources description for a library. 7 PRIVATE_HEADERS << 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 #------------------------------------------------------------------------------ >> 16 >> 17 # List external includes needed. >> 18 include_directories(${CLHEP_INCLUDE_DIRS}) >> 19 include_directories(${USOLIDS_INCLUDE_DIRS}) >> 20 >> 21 # List internal includes needed. >> 22 include_directories(${CMAKE_SOURCE_DIR}/source/digits_hits/detector/include) >> 23 include_directories(${CMAKE_SOURCE_DIR}/source/digits_hits/digits/include) >> 24 include_directories(${CMAKE_SOURCE_DIR}/source/digits_hits/hits/include) >> 25 include_directories(${CMAKE_SOURCE_DIR}/source/event/include) >> 26 include_directories(${CMAKE_SOURCE_DIR}/source/geometry/management/include) >> 27 include_directories(${CMAKE_SOURCE_DIR}/source/geometry/navigation/include) >> 28 include_directories(${CMAKE_SOURCE_DIR}/source/geometry/volumes/include) >> 29 include_directories(${CMAKE_SOURCE_DIR}/source/geometry/magneticfield/include) >> 30 include_directories(${CMAKE_SOURCE_DIR}/source/global/HEPGeometry/include) >> 31 include_directories(${CMAKE_SOURCE_DIR}/source/global/HEPRandom/include) >> 32 include_directories(${CMAKE_SOURCE_DIR}/source/global/management/include) >> 33 include_directories(${CMAKE_SOURCE_DIR}/source/graphics_reps/include) >> 34 include_directories(${CMAKE_SOURCE_DIR}/source/intercoms/include) >> 35 include_directories(${CMAKE_SOURCE_DIR}/source/materials/include) >> 36 include_directories(${CMAKE_SOURCE_DIR}/source/particles/bosons/include) >> 37 include_directories(${CMAKE_SOURCE_DIR}/source/particles/management/include) >> 38 include_directories(${CMAKE_SOURCE_DIR}/source/processes/cuts/include) >> 39 include_directories(${CMAKE_SOURCE_DIR}/source/processes/management/include) >> 40 include_directories(${CMAKE_SOURCE_DIR}/source/processes/scoring/include) >> 41 include_directories(${CMAKE_SOURCE_DIR}/source/run/include) >> 42 include_directories(${CMAKE_SOURCE_DIR}/source/track/include) >> 43 include_directories(${CMAKE_SOURCE_DIR}/source/tracking/include) >> 44 include_directories(${CMAKE_SOURCE_DIR}/source/visualization/management/include) >> 45 include_directories(${CMAKE_SOURCE_DIR}/source/visualization/modeling/include) >> 46 >> 47 >> 48 # >> 49 # Module has optional sources >> 50 # >> 51 # List those always built >> 52 set(G4VIS_RAYTRACER_MODULE_HEADERS 8 G4RTJpeg.hh 53 G4RTJpeg.hh 9 G4RTJpegCoder.hh 54 G4RTJpegCoder.hh 10 G4RTJpegCoderTables.hh 55 G4RTJpegCoderTables.hh 11 G4RTJpegMaker.hh 56 G4RTJpegMaker.hh 12 G4RTMessenger.hh 57 G4RTMessenger.hh 13 G4RTOutBitStream.hh 58 G4RTOutBitStream.hh 14 G4RTPrimaryGeneratorAction.hh 59 G4RTPrimaryGeneratorAction.hh 15 G4RTRun.hh 60 G4RTRun.hh 16 G4RTRunAction.hh 61 G4RTRunAction.hh 17 G4RTSimpleScanner.hh 62 G4RTSimpleScanner.hh 18 G4RTSteppingAction.hh 63 G4RTSteppingAction.hh 19 G4RTTrackingAction.hh 64 G4RTTrackingAction.hh 20 G4RTWorkerInitialization.hh 65 G4RTWorkerInitialization.hh >> 66 G4RayTracer.hh 21 G4RayTracerFeatures.hh 67 G4RayTracerFeatures.hh 22 G4RayTracerSceneHandler.hh 68 G4RayTracerSceneHandler.hh 23 G4RayTracerViewer.hh 69 G4RayTracerViewer.hh 24 G4RayTrajectory.hh 70 G4RayTrajectory.hh 25 G4RayTrajectoryPoint.hh 71 G4RayTrajectoryPoint.hh 26 G4TheMTRayTracer.hh 72 G4TheMTRayTracer.hh 27 G4TheRayTracer.hh 73 G4TheRayTracer.hh 28 G4VFigureFileMaker.hh 74 G4VFigureFileMaker.hh 29 G4VRTScanner.hh << 75 G4VRTScanner.hh) 30 SOURCES << 76 >> 77 set(G4VIS_RAYTRACER_MODULE_SOURCES 31 G4RTJpegCoder.cc 78 G4RTJpegCoder.cc 32 G4RTJpegMaker.cc 79 G4RTJpegMaker.cc 33 G4RTMessenger.cc 80 G4RTMessenger.cc 34 G4RTOutBitStream.cc 81 G4RTOutBitStream.cc 35 G4RTPrimaryGeneratorAction.cc 82 G4RTPrimaryGeneratorAction.cc 36 G4RTRun.cc 83 G4RTRun.cc 37 G4RTRunAction.cc 84 G4RTRunAction.cc 38 G4RTSimpleScanner.cc 85 G4RTSimpleScanner.cc 39 G4RTSteppingAction.cc 86 G4RTSteppingAction.cc 40 G4RTTrackingAction.cc 87 G4RTTrackingAction.cc 41 G4RTWorkerInitialization.cc 88 G4RTWorkerInitialization.cc 42 G4RayTracer.cc 89 G4RayTracer.cc 43 G4RayTracerSceneHandler.cc 90 G4RayTracerSceneHandler.cc 44 G4RayTracerViewer.cc 91 G4RayTracerViewer.cc 45 G4RayTrajectory.cc 92 G4RayTrajectory.cc 46 G4RayTrajectoryPoint.cc 93 G4RayTrajectoryPoint.cc 47 G4TheMTRayTracer.cc 94 G4TheMTRayTracer.cc 48 G4TheRayTracer.cc 95 G4TheRayTracer.cc 49 G4VRTScanner.cc) 96 G4VRTScanner.cc) 50 97 51 geant4_module_compile_definitions(G4RayTracer << 98 set(G4VIS_RAYTRACER_MODULE_LINK_LIBRARIES ) 52 << 53 geant4_module_link_libraries(G4RayTracer << 54 PUBLIC << 55 G4vis_management << 56 PRIVATE << 57 G4bosons << 58 G4cuts << 59 G4detector << 60 G4event << 61 G4globman << 62 G4graphics_reps << 63 G4geometrymng << 64 G4hepgeometry << 65 G4hits << 66 G4intercoms << 67 G4modeling << 68 G4partman << 69 G4procman << 70 G4run << 71 G4scoring << 72 G4track << 73 G4tracking << 74 G4navigation) << 75 99 >> 100 # 76 # X11 RayTracer only if selected 101 # X11 RayTracer only if selected >> 102 # 77 if(GEANT4_USE_RAYTRACER_X11) 103 if(GEANT4_USE_RAYTRACER_X11) 78 geant4_module_sources(G4RayTracer << 104 list(APPEND G4VIS_RAYTRACER_MODULE_HEADERS 79 PUBLIC_HEADERS << 105 G4RayTracerX.hh 80 G4RayTracerX.hh << 106 G4RayTracerXViewer.hh 81 PRIVATE_HEADERS << 107 G4RTXScanner.hh) 82 G4RayTracerXViewer.hh << 108 83 G4RTXScanner.hh << 109 list(APPEND G4VIS_RAYTRACER_MODULE_SOURCES >> 110 G4RayTracerX.cc >> 111 G4RayTracerXViewer.cc >> 112 G4RTXScanner.cc) >> 113 >> 114 # >> 115 # Add source properties and additional LINK_LIBRARIES here >> 116 # >> 117 # Need X11 includes! >> 118 include_directories(${X11_INCLUDE_DIR}) >> 119 >> 120 # Must use G4VIS_BUILD_RAYTRACERX_DRIVER define >> 121 GEANT4_ADD_COMPILE_DEFINITIONS(SOURCES ${G4VIS_RAYTRACER_MODULE_SOURCES} >> 122 COMPILE_DEFINITIONS G4VIS_BUILD_RAYTRACERX_DRIVER) >> 123 >> 124 # The X11 Libraries >> 125 list(APPEND G4VIS_RAYTRACER_MODULE_LINK_LIBRARIES ${X11_LIBRARIES}) >> 126 endif() >> 127 >> 128 >> 129 # >> 130 # Define the Geant4 Module. >> 131 # >> 132 include(Geant4MacroDefineModule) >> 133 GEANT4_DEFINE_MODULE(NAME G4RayTracer >> 134 HEADERS >> 135 ${G4VIS_RAYTRACER_MODULE_HEADERS} 84 SOURCES 136 SOURCES 85 G4RayTracerX.cc << 137 ${G4VIS_RAYTRACER_MODULE_SOURCES} 86 G4RayTracerXViewer.cc << 138 GRANULAR_DEPENDENCIES 87 G4RTXScanner.cc) << 139 G4bosons >> 140 G4cuts >> 141 G4detector >> 142 G4digits >> 143 G4event >> 144 G4geometrymng >> 145 G4globman >> 146 G4graphics_reps >> 147 G4hits >> 148 G4intercoms >> 149 G4materials >> 150 G4modeling >> 151 G4navigation >> 152 G4partman >> 153 G4procman >> 154 G4track >> 155 G4tracking >> 156 G4vis_management >> 157 G4volumes >> 158 GLOBAL_DEPENDENCIES >> 159 G4digits_hits >> 160 G4event >> 161 G4geometry >> 162 G4global >> 163 G4graphics_reps >> 164 G4intercoms >> 165 G4materials >> 166 G4modeling >> 167 G4particles >> 168 G4processes >> 169 G4track >> 170 G4tracking >> 171 G4vis_management >> 172 LINK_LIBRARIES >> 173 ${G4VIS_RAYTRACER_MODULE_LINK_LIBRARIES} >> 174 ) 88 175 89 geant4_module_compile_definitions(G4RayTrace << 176 # List any source specific properties here 90 177 91 geant4_module_link_libraries(G4RayTracer PRI << 92 endif() <<