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

Rename DD4hepDetectors --> DDDetectors

Simplify cmake: use add_dd4hep_plugin to create library and rootmap
parent e39cdd1f
No related branches found
No related tags found
No related merge requests found
......@@ -22,14 +22,12 @@ include_directories(${CMAKE_SOURCE_DIR}/DDCore/include
#---Add Library---------------------------------------------------------------------
file(GLOB sources src/*.cpp )
add_library( DD4hepDetectors SHARED ${sources})
target_link_libraries( DD4hepDetectors DDCore DDRec ${ROOT_LIBRARIES} )
#
#---Rootmap generation--------------------------------------------------------------
dd4hep_generate_rootmap( DD4hepDetectors )
add_dd4hep_plugin( DDDetectors SHARED ${sources})
target_link_libraries( DDDetectors DDCore DDRec ${ROOT_LIBRARIES} )
#
#--- install target-----------------------------------------------------------------
install( TARGETS DD4hepDetectors LIBRARY DESTINATION lib )
install( TARGETS DDDetectors LIBRARY DESTINATION lib )
install( DIRECTORY compact
DESTINATION DDDetectors
......
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