Skip to content
Snippets Groups Projects
Commit 378093bb authored by Andre Sailer's avatar Andre Sailer
Browse files

Rearange find_package calls

Move find_package xercesc to dd4hep_xml_setup, so all the xml treatment is in one place
Move find_package boost and lcio to main cmakelists, so they are done once and not repeated
Move include geant4_use_file to main cmakelists, so all of the geant4 treatment is in one place
parent 7d554977
No related branches found
No related tags found
No related merge requests found
......@@ -57,8 +57,18 @@ include( DD4hepMacros )
find_package(ROOT REQUIRED)
if(DD4HEP_USE_XERCESC)
find_package(XercesC REQUIRED)
##checks for xercesc or not and sets up the include_directories
include(DD4hep_XML_setup)
if(DD4HEP_USE_BOOST)
find_package( Boost REQUIRED )
include_directories( SYSTEM ${Boost_INCLUDE_DIRS} )
add_definitions( -DDD4HEP_USE_BOOST )
endif()
if(DD4HEP_USE_LCIO)
find_package( LCIO REQUIRED )
include_directories( SYSTEM ${LCIO_INCLUDE_DIRS} )
endif()
#---Testing-------------------------------------------------------------------------
......@@ -101,6 +111,7 @@ if(DD4HEP_USE_GEANT4)
#--- create a geant4 variables for the thisdd4hep.sh script
find_package( Geant4 REQUIRED gdml ui_all vis_all)
include(${Geant4_USE_FILE}) # this also takes care of geant 4 definitions and include dirs
#----- if geant4 is build with external CLHEP we also need to export this fact
......
if(DD4HEP_USE_XERCESC)
find_package( XercesC REQUIRED )
add_definitions(-DDD4HEP_USE_XERCESC)
include_directories(SYSTEM ${XERCESC_INCLUDE_DIRS})
set(XML_LIBRARIES ${XERCESC_LIBRARIES})
......
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