Skip to content
Snippets Groups Projects
Commit 8351ef1f authored by Frank Gaede's avatar Frank Gaede
Browse files

- made inclusion of Boost more cmake standard:

   -D DD4HEP_USE_BOOST -D BOOST_ROOT=_path_to_boost_
 - client packages will automatically also use boost
   ( add_definition( DD4HEP_USE_BOOST ))
parent 7114eb66
No related branches found
No related tags found
No related merge requests found
...@@ -20,9 +20,16 @@ include_directories(${CMAKE_SOURCE_DIR}/DDCore/include ...@@ -20,9 +20,16 @@ include_directories(${CMAKE_SOURCE_DIR}/DDCore/include
#---Add Library------------------------------------------------------------------- #---Add Library-------------------------------------------------------------------
if(DD4HEP_USE_BOOST) if(DD4HEP_USE_BOOST)
list(APPEND include_directories ${BOOST_INCLUDE_DIR}) #fg: canonical way of finding Boost w/ cmake uses
# -D Boost_DIR=_path_to_boost
# and then FindBoost.cmake sets the variable Boost_INCLUDE_DIR
FIND_PACKAGE( Boost REQUIRED)
include_directories( ${Boost_INCLUDE_DIR})
#list(APPEND include_directories ${BOOST_INCLUDE_DIR})
file(GLOB sources src/*.cpp parsers/*.cpp) file(GLOB sources src/*.cpp parsers/*.cpp)
add_definitions(-DDD4HEP_USE_BOOST) add_definitions(-DDD4HEP_USE_BOOST)
# MESSAGE( STATUS "Boost_INCLUDE_DIR = ${Boost_INCLUDE_DIR} ")
# MESSAGE( STATUS "include_directories= ${include_directories} ")
else() else()
file(GLOB sources src/*.cpp) file(GLOB sources src/*.cpp)
endif() endif()
......
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