Back to home page

EIC code displayed by LXR

 
 

    


Warning, /DD4hep/UtilityApps/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 #==========================================================================
0002 #  AIDA Detector description implementation 
0003 #--------------------------------------------------------------------------
0004 # Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 # All rights reserved.
0006 #
0007 # For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 # For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 #
0010 #==========================================================================
0011 SET_PROPERTY(DIRECTORY . PROPERTY PACKAGE_NAME UtilityApps)
0012 
0013 add_executable(geoDisplay src/display.cpp)
0014 target_link_libraries(geoDisplay DD4hep::DDCore)
0015 #-----------------------------------------------------------------------------------
0016 add_executable(geoConverter src/converter.cpp)
0017 target_link_libraries(geoConverter DD4hep::DDCore)
0018 #-----------------------------------------------------------------------------------
0019 add_executable(geoPluginRun src/plugin_runner.cpp)
0020 target_link_libraries(geoPluginRun DD4hep::DDCore)
0021 #-----------------------------------------------------------------------------------
0022 add_executable(dumpBfield src/dumpBfield.cpp)
0023 target_link_libraries(dumpBfield DD4hep::DDCore)
0024 #-----------------------------------------------------------------------------------
0025 add_executable(print_materials src/print_materials.cpp)
0026 target_link_libraries(print_materials DD4hep::DDCore DD4hep::DDRec)
0027 #-----------------------------------------------------------------------------------
0028 add_executable(materialScan src/materialScan.cpp)
0029 target_link_libraries(materialScan DD4hep::DDRec ROOT::Core ROOT::Geom)
0030 #-----------------------------------------------------------------------------------
0031 add_executable(materialBudget  src/materialBudget.cpp)
0032 target_link_libraries(materialBudget DD4hep::DDRec ROOT::Core ROOT::Geom ROOT::Hist)
0033 #-----------------------------------------------------------------------------------
0034 add_executable(graphicalScan src/graphicalScan.cpp)
0035 target_link_libraries(graphicalScan  DD4hep::DDRec ROOT::Core ROOT::Geom ROOT::Hist)
0036 #-----------------------------------------------------------------------------------
0037 
0038 if(TARGET Geant4::Interface)
0039   add_executable(dumpdetector src/dumpdetector.cpp)
0040   target_link_libraries(dumpdetector DD4hep::DDCore DD4hep::DDRec Geant4::Interface)
0041   LIST(APPEND OPTIONAL_EXECUTABLES dumpdetector)
0042 endif()
0043 
0044 # the web display tool depends on the ROOT7 version of DDEve
0045 if(TARGET ROOT::ROOTEve)
0046   add_executable(geoWebDisplay src/webdisplay.cpp)
0047   target_link_libraries(geoWebDisplay DD4hep::DDCore)
0048   LIST(APPEND OPTIONAL_EXECUTABLES geoWebDisplay)
0049 endif()
0050 
0051 # #-----------------------------------------------------------------------------------
0052 if(BUILD_TESTING)
0053   if(DD4HEP_USE_LCIO)
0054     add_executable(test_surfaces src/test_surfaces.cpp)
0055     target_link_libraries(test_surfaces DD4hep::DDRec DD4hep::DDTest LCIO::lcio)
0056 
0057     add_executable(test_cellid_position_converter src/test_cellid_position_converter.cpp)
0058     target_link_libraries(test_cellid_position_converter DD4hep::DDRec DD4hep::DDTest LCIO::lcio)
0059 
0060     LIST(APPEND OPTIONAL_EXECUTABLES test_surfaces)
0061     LIST(APPEND OPTIONAL_EXECUTABLES test_cellid_position_converter)
0062   endif()
0063   #-----------------------------------------------------------------------------------
0064 endif()
0065 dd4hep_add_dictionary( G__eve
0066   SOURCES src/EvNavHandler.h
0067   LINKDEF src/LinkDef.h
0068   USES    DD4hep::DDCore ROOT::Geom
0069   )
0070 
0071 # #-----------------------------------------------------------------------------------
0072 if (DD4HEP_USE_LCIO)
0073   dd4hep_add_dictionary( G__eve1
0074     SOURCES src/EvNavHandler.h
0075     LINKDEF src/LinkDef.h
0076     USES    DD4hep::DDCore ROOT::Geom
0077     )
0078   add_executable(teveLCIO G__eve1.cxx src/teve_display.cpp src/next_event_lcio.cpp)
0079   target_link_libraries(teveLCIO DD4hep::DDRec LCIO::lcio ROOT::Core ROOT::Eve ROOT::Gui ROOT::Graf3d ROOT::RGL)
0080   LIST(APPEND OPTIONAL_EXECUTABLES teveLCIO)
0081 endif()
0082 
0083 # #-----------------------------------------------------------------------------------
0084 add_executable(teveDisplay src/teve_display.cpp src/next_event_dummy.cpp G__eve.cxx)
0085 target_link_libraries(teveDisplay DD4hep::DDRec ROOT::Core ROOT::Eve ROOT::Gui ROOT::Graf3d ROOT::RGL )
0086 
0087 INSTALL(TARGETS geoDisplay
0088   geoConverter
0089   geoPluginRun
0090   dumpBfield
0091   print_materials
0092   materialScan
0093   materialBudget
0094   graphicalScan
0095   teveDisplay
0096   ${OPTIONAL_EXECUTABLES}
0097   EXPORT DD4hep
0098   RUNTIME DESTINATION bin
0099   )