Skip to content
Snippets Groups Projects
Commit f0bb45eb authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Cleaned the CMake configuration of xAODPrimitives.

Removed its unnecessary direct ROOT dependency, and its usage of
the atlas_depends_on_subdirs(...) function.
parent 0491459e
No related branches found
No related tags found
Loading
################################################################################ # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Package: xAODPrimitives
################################################################################
# Declare the package name: # Declare the package name.
atlas_subdir( xAODPrimitives ) atlas_subdir( xAODPrimitives )
# Declare the package's dependencies: # Component(s) in the package.
atlas_depends_on_subdirs( PUBLIC
Control/AthContainers
PRIVATE
AtlasTest/TestTools )
# External dependencies:
find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread )
# Component(s) in the package:
atlas_add_library( xAODPrimitives atlas_add_library( xAODPrimitives
Root/*.cxx xAODPrimitives/*.h xAODPrimitives/tools/*.h Root/*.cxx
PUBLIC_HEADERS xAODPrimitives PUBLIC_HEADERS xAODPrimitives
PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} LINK_LIBRARIES AthContainers )
LINK_LIBRARIES AthContainers
PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} TestTools )
atlas_add_dictionary( xAODPrimitivesDict atlas_add_dictionary( xAODPrimitivesDict
xAODPrimitives/xAODPrimitivesDict.h xAODPrimitives/xAODPrimitivesDict.h
xAODPrimitives/selection.xml xAODPrimitives/selection.xml
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} LINK_LIBRARIES xAODPrimitives )
LINK_LIBRARIES ${ROOT_LIBRARIES} AthContainers TestTools xAODPrimitives )
# Test(s) in the package.
atlas_add_test( ut_xAOD_primitives_enums_test atlas_add_test( ut_xAOD_primitives_enums_test
SOURCES SOURCES test/ut_xAOD_primitives_enums_test.cxx
test/ut_xAOD_primitives_enums_test.cxx LINK_LIBRARIES xAODPrimitives )
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES ${ROOT_LIBRARIES} AthContainers TestTools xAODPrimitives )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment