Back to home page

EIC code displayed by LXR

 
 

    


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

0001 cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
0002 
0003 project(GaudiPluginService)
0004 find_package(ROOT REQUIRED)
0005 
0006 add_library(DD4hepGaudiPluginMgr src/PluginServiceV1.cpp src/PluginServiceV2.cpp interface/DD4hepV1.cpp interface/DD4hepV2.cpp)
0007 add_library(DD4hep::DD4hepGaudiPluginMgr ALIAS DD4hepGaudiPluginMgr)
0008 
0009 target_compile_definitions(DD4hepGaudiPluginMgr PUBLIC Gaudi=DD4hep_Flavor)
0010 
0011 target_include_directories(DD4hepGaudiPluginMgr PUBLIC
0012   $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
0013   )
0014 
0015 if( APPLE ) 
0016   target_compile_definitions(DD4hepGaudiPluginMgr PUBLIC APPLE)
0017 endif()
0018 target_compile_features(DD4hepGaudiPluginMgr PRIVATE
0019   $<TARGET_PROPERTY:ROOT::Core,INTERFACE_COMPILE_FEATURES>
0020 )
0021 target_compile_options(DD4hepGaudiPluginMgr PRIVATE -Wno-shadow
0022   -Wno-unused
0023   -Wno-unused-parameter
0024   -Wno-deprecated
0025   -Wno-keyword-macro
0026   -Wno-return-type-c-linkage
0027   )
0028 
0029 target_link_libraries(DD4hepGaudiPluginMgr PUBLIC Boost::boost ${FS_LIBRARIES} ${CMAKE_DL_LIBS})
0030 SET_TARGET_PROPERTIES(DD4hepGaudiPluginMgr PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION})
0031 
0032 add_executable(listcomponents src/listcomponents.cpp )
0033 add_executable(DD4hep::listcomponents ALIAS listcomponents)
0034 target_link_libraries(listcomponents PUBLIC DD4hepGaudiPluginMgr ${FS_LIBRARIES} ${CMAKE_DL_LIBS})
0035 target_compile_options(listcomponents PRIVATE -Wno-deprecated)
0036 target_compile_features(listcomponents PRIVATE
0037   $<TARGET_PROPERTY:ROOT::Core,INTERFACE_COMPILE_FEATURES>
0038 )
0039 set_target_properties(listcomponents
0040   PROPERTIES
0041   OUTPUT_NAME listcomponents_dd4hep
0042   )
0043 INSTALL(TARGETS listcomponents DD4hepGaudiPluginMgr EXPORT DD4hep
0044   RUNTIME DESTINATION bin
0045   ARCHIVE DESTINATION lib
0046   LIBRARY DESTINATION lib)