From b1afa0fd0d5319a54172371be9965ead1f1f1c2b Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Mon, 10 Aug 2020 21:20:48 -0400 Subject: [PATCH] D3PDMakerInterfaces: cmake fixes Define an interface library for exported headers. --- .../D3PDMaker/D3PDMakerInterfaces/CMakeLists.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/PhysicsAnalysis/D3PDMaker/D3PDMakerInterfaces/CMakeLists.txt b/PhysicsAnalysis/D3PDMaker/D3PDMakerInterfaces/CMakeLists.txt index 9be035e4276..f566ec549f1 100644 --- a/PhysicsAnalysis/D3PDMaker/D3PDMakerInterfaces/CMakeLists.txt +++ b/PhysicsAnalysis/D3PDMaker/D3PDMakerInterfaces/CMakeLists.txt @@ -5,10 +5,8 @@ # Declare the package name: atlas_subdir( D3PDMakerInterfaces ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( PUBLIC - GaudiKernel ) - -# Install files from the package: -atlas_install_headers( D3PDMakerInterfaces ) - +atlas_add_library( D3PDMakerInterfaces + D3PDMakerInterfaces/*.h + INTERFACE + PUBLIC_HEADERS D3PDMakerInterfaces + LINK_LIBRARIES GaudiKernel ) -- GitLab