diff --git a/cmake/DD4hepConfig.cmake.in b/cmake/DD4hepConfig.cmake.in index 558c7fc1535b88f588f4f01411394c9747f92e63..99ae5065cbb9724557569a73513f01797d9c58b6 100644 --- a/cmake/DD4hepConfig.cmake.in +++ b/cmake/DD4hepConfig.cmake.in @@ -16,6 +16,10 @@ SET( DD4hep_ROOT "@CMAKE_INSTALL_PREFIX@" ) SET( DD4hep_VERSION "@DD4hep_VERSION@" ) +INCLUDE( ${DD4hep_ROOT}/cmake/DD4hep.cmake ) + +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${DD4hep_ROOT}/cmake/ ) + # ---------- include dirs ----------------------------------------------------- # do not store find results in cache @@ -62,11 +66,19 @@ endif() #---- build with Boost ? if(@DD4HEP_USE_BOOST@) - include_directories( @Boost_INCLUDE_DIR@ ) - add_definitions(-DDD4HEP_USE_BOOST) + set( DD4HEP_USE_BOOST True ) + find_package( Boost REQUIRED ) + include_directories( SYSTEM ${Boost_INCLUDE_DIRS} ) + add_definitions( -DDD4HEP_USE_BOOST ) endif() +#---- build with xercesc or tinyxml ? +if( @DD4HEP_USE_XERCESC@ ) + set( DD4HEP_USE_XERCESC True ) +endif() +INCLUDE( ${DD4hep_ROOT}/cmake/DD4hep_XML_setup.cmake ) + #----- APPLE ? ------- set( USE_DYLD @USE_DYLD@ )