From c240627370b85b83208f61d6d0c54af1f7cc3e08 Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Wed, 15 Nov 2023 13:33:03 +0100 Subject: [PATCH] CMake: use LCIO::LCIO targets, needs LCIO master at the moment --- CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec0d8260a..4aef608ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,11 +84,8 @@ add_library(lcgeo ALIAS k4geo) target_include_directories(${PackageName} PRIVATE ${PROJECT_SOURCE_DIR}/detector/include ) target_include_directories(${PackageName}G4 PRIVATE ${PROJECT_SOURCE_DIR}/detector/include ) -target_include_directories(${PackageName} SYSTEM PUBLIC ${LCIO_INCLUDE_DIRS}) -target_include_directories(${PackageName}G4 SYSTEM PUBLIC ${LCIO_INCLUDE_DIRS}) - -target_link_libraries(${PackageName} DD4hep::DDCore DD4hep::DDRec DD4hep::DDParsers ROOT::Core ${LCIO_LIBRARIES} detectorSegmentations) -target_link_libraries(${PackageName}G4 DD4hep::DDCore DD4hep::DDRec DD4hep::DDParsers DD4hep::DDG4 ROOT::Core ${Geant4_LIBRARIES} ${LCIO_LIBRARIES}) +target_link_libraries(${PackageName} DD4hep::DDCore DD4hep::DDRec DD4hep::DDParsers ROOT::Core LCIO::LCIO detectorSegmentations) +target_link_libraries(${PackageName}G4 DD4hep::DDCore DD4hep::DDRec DD4hep::DDParsers DD4hep::DDG4 ROOT::Core ${Geant4_LIBRARIES} LCIO::LCIO) #Create this_package.sh file, and install dd4hep_instantiate_package(${PackageName})