From aa3828bad9866b25db0e86d73d9db5010278634c Mon Sep 17 00:00:00 2001 From: Markus Frank <markus.frank@cern.ch> Date: Thu, 21 Feb 2013 20:15:40 +0000 Subject: [PATCH] Use standard plusgin directory and create plugin library --- DDCore/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/DDCore/CMakeLists.txt b/DDCore/CMakeLists.txt index b1a8a3952..792e9a5a1 100644 --- a/DDCore/CMakeLists.txt +++ b/DDCore/CMakeLists.txt @@ -7,6 +7,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${XERCESC_INCLUDE_DIR}) file(GLOB sources src/*.cpp src/Evaluator/*.cpp) +file(GLOB plugin_sources src/plugins/*.cpp) if(DD4HEP_USE_PYROOT) file(GLOB headers include/DD4hep/*.h) @@ -19,15 +20,19 @@ if(DD4HEP_USE_PYROOT) endif() if(DD4HEP_USE_XERCESC) - file(GLOB xmlsources src/XML/*.cpp src/compact/*.cpp src/lcdd/*.cpp) + file(GLOB xmlsources src/XML/*.cpp) list(APPEND sources ${xmlsources}) add_definitions(-DDD4HEP_USE_XERCESC) endif() add_library(DD4hepCore SHARED ${sources}) target_link_libraries(DD4hepCore ${ROOT_LIBRARIES} ${XERCESC_LIBRARIES} Geom Reflex ${libraries}) - #---Rootmap generation-------------------------------------------------------------- dd4hep_generate_rootmap(DD4hepCore) +add_library(DD4hepPlugins SHARED ${plugin_sources}) +target_link_libraries(DD4hepPlugins ${ROOT_LIBRARIES} DD4hepCore Geom Reflex ${libraries}) +#---Rootmap generation-------------------------------------------------------------- +dd4hep_generate_rootmap(DD4hepPlugins) + -- GitLab