Back to home page

EIC code displayed by LXR

 
 

    


Warning, /DD4hep/DDEve/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 DDEve)
0012 
0013 add_library(DDEve_Interface INTERFACE)
0014 add_library(DD4hep::DDEve_Interface ALIAS DDEve_Interface)
0015 target_include_directories(DDEve_Interface
0016   INTERFACE
0017   $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0018   $<INSTALL_INTERFACE:include>
0019 )
0020 
0021 target_link_libraries(DDEve_Interface INTERFACE ROOT::Core ROOT::Rint ROOT::Eve ROOT::Gui ROOT::Graf3d ROOT::RGL ROOT::EG)
0022 if(ROOT_VERSION VERSION_GREATER_EQUAL 6.27.00)
0023   target_link_libraries(DDEve_Interface INTERFACE ROOT::ROOTGeomViewer)
0024 endif()
0025 
0026 
0027 dd4hep_add_dictionary(G__DDEve
0028   SOURCES ../DDCore/include/ROOT/Warnings.h include/DDEve/*.h
0029   EXCLUDE include/DDEve/Utilities.h
0030   include/DDEve/ParticleActors.h
0031   include/DDEve/HitActors.h
0032   include/DDEve/Factories.h
0033   LINKDEF ../DDCore/include/ROOT/LinkDef.h
0034   USES DD4hep::DDCore
0035   )
0036 
0037 if(TARGET ROOT::ROOTEve)
0038   dd4hep_print("Building the web display using ROOT7")
0039   SET(DDEVE_ROOT7_SOURCES root7/WebDisplay.cpp)
0040   SET(DDEVE_ROOT7_LINK ROOT::ROOTEve)
0041 endif()
0042 
0043 if(TARGET LCIO::lcio)
0044   SET(DDEVE_LCIO_SOURCES lcio/LCIOEventHandler.cpp)
0045   SET(DDEVE_LCIO_LINK LCIO::lcio)
0046 endif()
0047 
0048 dd4hep_add_plugin(DDEvePlugins SOURCES src/*.cpp ${DDEVE_LCIO_SOURCES} ${DDEVE_ROOT7_SOURCES}
0049   GENERATED G__DDEve.cxx
0050   USES      DD4hep::DDCore DD4hep::DDEve_Interface ${DDEVE_LCIO_LINK} ${DDEVE_ROOT7_LINK}
0051   )
0052 
0053 if(DD4HEP_USE_GEANT4)
0054   dd4hep_add_dictionary(G__DDG4IO
0055     SOURCES ../DDCore/include/ROOT/Warnings.h DDEve/DDG4IO.C
0056     LINKDEF ../DDCore/include/ROOT/LinkDef.h
0057     USES    DD4hep::DDG4 
0058     )
0059   add_library(DDG4IO DDEve/IO.cpp G__DDG4IO.cxx)
0060   target_link_libraries(DDG4IO DD4hep::DDG4 DD4hep::DDEve_Interface)
0061   set_target_properties(DDG4IO PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION})
0062   install(TARGETS DDG4IO EXPORT DD4hep
0063     LIBRARY DESTINATION lib
0064     ARCHIVE DESTINATION lib
0065     )
0066 endif()
0067 
0068 add_executable(ddeve DDEve/DDEve.cpp)
0069 target_link_libraries(ddeve DDEve_Interface)
0070 
0071 
0072 set_target_properties(DDEvePlugins PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION})
0073 
0074 
0075 install(DIRECTORY DDEve DESTINATION examples )
0076 install(DIRECTORY include/DDEve DESTINATION include)
0077 install(TARGETS ddeve DDEvePlugins DDEve_Interface EXPORT DD4hep
0078   ARCHIVE DESTINATION lib
0079   LIBRARY DESTINATION lib
0080   RUNTIME DESTINATION bin
0081   )