From 68e3adec61843a7b6a3f0c0f1331d2aa9cfaae02 Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Wed, 8 Jul 2020 16:30:27 +0200 Subject: [PATCH] xAODMuonCnv: cmake fixes Declare an interface library for exported headers. --- Event/xAOD/xAODMuonCnv/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Event/xAOD/xAODMuonCnv/CMakeLists.txt b/Event/xAOD/xAODMuonCnv/CMakeLists.txt index ef886b53813..05c304bfa6d 100644 --- a/Event/xAOD/xAODMuonCnv/CMakeLists.txt +++ b/Event/xAOD/xAODMuonCnv/CMakeLists.txt @@ -20,12 +20,16 @@ atlas_depends_on_subdirs( PUBLIC Reconstruction/Particle Event/xAOD/xAODTruth ) +atlas_add_library( xAODMuonCnvLib + xAODMuonCnv/*.h + INTERFACE + PUBLIC_HEADERS xAODMuonCnv + LINK_LIBRARIES GaudiKernel xAODMuon MuonSegment TrkSegment AthLinks ) + # Component(s) in the package: atlas_add_component( xAODMuonCnv src/*.cxx src/components/*.cxx - LINK_LIBRARIES AthLinks xAODMuon MuonSegment TrkSegment AthenaBaseComps AthenaKernel xAODPrimitives GaudiKernel muonEvent Particle xAODTruth) + LINK_LIBRARIES xAODMuonCnvLib AthenaBaseComps AthenaKernel xAODPrimitives muonEvent Particle xAODTruth) -# Install files from the package: -atlas_install_headers( xAODMuonCnv ) -- GitLab