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
0066 # #-----------------------------------------------------------------------------------
0067 if (DD4HEP_USE_LCIO AND TARGET ROOT::Eve)
0068 dd4hep_add_dictionary( G__eve1
0069 SOURCES src/EvNavHandler.h
0070 LINKDEF src/LinkDef.h
0071 USES DD4hep::DDCore ROOT::Geom
0072 )
0073 add_executable(teveLCIO G__eve1.cxx src/teve_display.cpp src/next_event_lcio.cpp)
0074 target_link_libraries(teveLCIO DD4hep::DDRec LCIO::lcio ROOT::Core ROOT::Eve ROOT::Gui ROOT::Graf3d ROOT::RGL)
0075 LIST(APPEND OPTIONAL_EXECUTABLES teveLCIO)
0076 endif()
0077
0078 # #-----------------------------------------------------------------------------------
0079 if (TARGET ROOT::Eve)
0080 dd4hep_add_dictionary( G__eve
0081 SOURCES src/EvNavHandler.h
0082 LINKDEF src/LinkDef.h
0083 USES DD4hep::DDCore ROOT::Geom
0084 )
0085 add_executable(teveDisplay src/teve_display.cpp src/next_event_dummy.cpp G__eve.cxx)
0086 target_link_libraries(teveDisplay DD4hep::DDRec ROOT::Core ROOT::Eve ROOT::Gui ROOT::Graf3d ROOT::RGL )
0087 LIST(APPEND OPTIONAL_EXECUTABLES teveDisplay)
0088 else()
0089 MESSAGE(STATUS "ROOT::Eve not found: not building teveDisplay")
0090 endif()
0091
0092 INSTALL(TARGETS geoDisplay
0093 geoConverter
0094 geoPluginRun
0095 dumpBfield
0096 print_materials
0097 materialScan
0098 materialBudget
0099 graphicalScan
0100 ${OPTIONAL_EXECUTABLES}
0101 EXPORT DD4hep
0102 RUNTIME DESTINATION bin
0103 )