Skip to content

Commit

Permalink
CMake: add shim for LCIO::lcio
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Feb 15, 2024
1 parent f6c1762 commit f2b55ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ 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)
Expand Down

0 comments on commit f2b55ed

Please sign in to comment.