diff --git a/TileCalorimeter/TileSimUtils/CMakeLists.txt b/TileCalorimeter/TileSimUtils/CMakeLists.txt index 340fa45d60796a87b6140536740d5aeb07887ac9..904ec39c81beb0c52135345b96c449dbbeb225c6 100644 --- a/TileCalorimeter/TileSimUtils/CMakeLists.txt +++ b/TileCalorimeter/TileSimUtils/CMakeLists.txt @@ -1,39 +1,19 @@ -################################################################################ -# Package: TileSimUtils -################################################################################ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration -# Declare the package name: +# Declare the package name. atlas_subdir( TileSimUtils ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( PUBLIC - Calorimeter/CaloIdentifier - Calorimeter/CaloSimEvent - Control/AthenaBaseComps - GaudiKernel - PRIVATE - Control/AthenaKernel - Control/StoreGate ) +# External dependencies. +find_package( ROOT COMPONENTS Core Tree ) -# External dependencies: -find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) - -# this line failed automatic conversion in cmt2cmake : -# macro_prepend TileSimUtilsDict_shlibflags " -lTileSimUtils " - -# Component(s) in the package: +# Component(s) in the package. atlas_add_library( TileSimUtilsLib - src/*.cxx - PUBLIC_HEADERS TileSimUtils - PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} - LINK_LIBRARIES CaloIdentifier CaloSimEvent AthenaBaseComps GaudiKernel StoreGateLib SGtests - PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} AthenaKernel ) + TileSimUtils/*.h src/*.cxx + PUBLIC_HEADERS TileSimUtils + PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} + LINK_LIBRARIES CaloIdentifier CaloSimEvent AthenaBaseComps GaudiKernel + PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} AthenaKernel ) atlas_add_component( TileSimUtils - src/components/*.cxx - INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} - LINK_LIBRARIES TileSimUtilsLib ) - -# Install files from the package: -atlas_install_python_modules( python/*.py ) - + src/components/*.cxx + LINK_LIBRARIES TileSimUtilsLib )