From af92d3d0e839a3b0465bf12d82bee1c8d7eb9ffe Mon Sep 17 00:00:00 2001
From: Frank Winklmeier <fwinkl@cern>
Date: Fri, 16 Oct 2020 17:10:36 +0200
Subject: [PATCH] PFlowValidation: cmake cleanup

---
 .../PFlowValidation/PFODQA/CMakeLists.txt     | 23 ++-----------------
 .../PFOHistUtils/CMakeLists.txt               | 18 ++-------------
 2 files changed, 4 insertions(+), 37 deletions(-)

diff --git a/Reconstruction/PFlow/PFlowValidation/PFODQA/CMakeLists.txt b/Reconstruction/PFlow/PFlowValidation/PFODQA/CMakeLists.txt
index 1ba0b67b81c6..c60af8ea994c 100644
--- a/Reconstruction/PFlow/PFlowValidation/PFODQA/CMakeLists.txt
+++ b/Reconstruction/PFlow/PFlowValidation/PFODQA/CMakeLists.txt
@@ -1,29 +1,10 @@
-################################################################################
-# Package: PFODQA
-################################################################################
+# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 
 # Declare the package name:
 atlas_subdir( PFODQA )
 
-# Declare the package's dependencies:
-atlas_depends_on_subdirs( PUBLIC
-                          GaudiKernel
-                          PRIVATE
-                          Control/AthenaMonitoring
-			  Control/StoreGate
-                          Event/xAOD/xAODCaloEvent
-                          Event/xAOD/xAODPFlow
-			  Event/xAOD/xAODTracking
-                          Reconstruction/PFlow/PFlowValidation/PFOHistUtils
-                          Tracking/TrkValidation/TrkValHistUtils )
-
-# External dependencies:
-find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread )
-
 # Component(s) in the package:
 atlas_add_component( PFODQA
                      src/*.cxx
                      src/components/*.cxx
-                     INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
-                     LINK_LIBRARIES ${ROOT_LIBRARIES} GaudiKernel AthenaMonitoringLib xAODCaloEvent xAODPFlow PFOHistUtils TrkValHistUtils )
-
+                     LINK_LIBRARIES AthenaMonitoringLib xAODCaloEvent xAODPFlow xAODTracking PFOHistUtils StoreGateLib TrkValHistUtils )
diff --git a/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/CMakeLists.txt b/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/CMakeLists.txt
index 63fa9fa2631b..0851308a4ff5 100644
--- a/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/CMakeLists.txt
+++ b/Reconstruction/PFlow/PFlowValidation/PFOHistUtils/CMakeLists.txt
@@ -1,24 +1,10 @@
-################################################################################
-# Package: PFOHistUtils
-################################################################################
+# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 
 # Declare the package name:
 atlas_subdir( PFOHistUtils )
 
-# Declare the package's dependencies:
-atlas_depends_on_subdirs( PUBLIC
-                          Event/xAOD/xAODCaloEvent
-                          Event/xAOD/xAODPFlow
-			  Event/xAOD/xAODTracking
-                          Tracking/TrkValidation/TrkValHistUtils )
-
-# External dependencies:
-find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread )
-
 # Component(s) in the package:
 atlas_add_library( PFOHistUtils
                    src/*.cxx
                    PUBLIC_HEADERS PFOHistUtils
-                   INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
-                   LINK_LIBRARIES ${ROOT_LIBRARIES} xAODCaloEvent xAODPFlow TrkValHistUtils )
-
+                   LINK_LIBRARIES xAODCaloEvent xAODPFlow xAODTracking TrkValHistUtils )
-- 
GitLab