diff --git a/CMakeLists.txt b/CMakeLists.txt index d467551ae..a8f65059d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,16 @@ message ( STATUS "ROOT_VERSION: ${ROOT_VERSION}" ) find_package( Geant4 REQUIRED ) find_package( LCIO REQUIRED) - +# Shim for older LCIO versions +if(NOT TARGET LCIO::lcio) + add_library(LCIO::lcio INTERFACE IMPORTED GLOBAL) + set_target_properties(LCIO::lcio + PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${LCIO_INCLUDE_DIRS}" + INTERFACE_LINK_LIBRARIES "${LCIO_LIBRARIES}" + ) + endif() + add_subdirectory(detectorSegmentations) add_subdirectory(detectorCommon)