Newer
Older
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
Markus Frank
committed
Markus Frank
committed
find_package(ROOT REQUIRED)
Andre Sailer
committed
add_library(DD4hepGaudiPluginMgr src/PluginServiceV1.cpp src/PluginServiceV2.cpp interface/DD4hepV1.cpp interface/DD4hepV2.cpp)
Andre Sailer
committed
add_library(DD4hep::DD4hepGaudiPluginMgr ALIAS DD4hepGaudiPluginMgr)
Andre Sailer
committed
target_compile_definitions(DD4hepGaudiPluginMgr PUBLIC Gaudi=DD4hep_Flavor)
target_include_directories(DD4hepGaudiPluginMgr PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)
target_compile_definitions(DD4hepGaudiPluginMgr PUBLIC APPLE)
Markus Frank
committed
target_compile_features(DD4hepGaudiPluginMgr PRIVATE
$<TARGET_PROPERTY:ROOT::Core,INTERFACE_COMPILE_FEATURES>
)
Andre Sailer
committed
target_compile_options(DD4hepGaudiPluginMgr PRIVATE -Wno-shadow
-Wno-unused
-Wno-unused-parameter
-Wno-deprecated
-Wno-keyword-macro
-Wno-return-type-c-linkage
)
target_link_libraries(DD4hepGaudiPluginMgr PUBLIC Boost::boost ${FS_LIBRARIES} ${CMAKE_DL_LIBS})
SET_TARGET_PROPERTIES(DD4hepGaudiPluginMgr PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION})
Markus Frank
committed
add_executable(listcomponents src/listcomponents.cpp )
add_executable(DD4hep::listcomponents ALIAS listcomponents)
Andre Sailer
committed
target_link_libraries(listcomponents PUBLIC DD4hepGaudiPluginMgr ${FS_LIBRARIES} ${CMAKE_DL_LIBS})
target_compile_options(listcomponents PRIVATE -Wno-deprecated)
Markus Frank
committed
target_compile_features(listcomponents PRIVATE
$<TARGET_PROPERTY:ROOT::Core,INTERFACE_COMPILE_FEATURES>
)
Andre Sailer
committed
set_target_properties(listcomponents
PROPERTIES
OUTPUT_NAME listcomponents_dd4hep
)
INSTALL(TARGETS listcomponents DD4hepGaudiPluginMgr EXPORT DD4hep
Markus Frank
committed
RUNTIME DESTINATION bin
Andre Sailer
committed
ARCHIVE DESTINATION lib
Markus Frank
committed
LIBRARY DESTINATION lib)