diff --git a/DDAlign/CMakeLists.txt b/DDAlign/CMakeLists.txt index cd9365d592a733e15fad7afa17ca466572f23a87..febd0271d7619d86d3ff13dca1944337ed045838 100644 --- a/DDAlign/CMakeLists.txt +++ b/DDAlign/CMakeLists.txt @@ -18,7 +18,7 @@ include_directories(${CMAKE_SOURCE_DIR}/DDCore/include #---DD4hepAlign library -------------------------------------------------------------- file(GLOB sources src/*.cpp) add_library(DD4hepAlign SHARED ${sources}) -target_link_libraries(DD4hepAlign DD4hepCore ${ROOT_LIBRARIES}) +target_link_libraries(DD4hepAlign DDCore ${ROOT_LIBRARIES}) # # if(DD4HEP_USE_XERCESC) diff --git a/DDCond/CMakeLists.txt b/DDCond/CMakeLists.txt index 090c89d688c1ded6147afb779ec0adce1d5ff3b4..d8272786775237640304fe2fe82fc0135fe59698 100644 --- a/DDCond/CMakeLists.txt +++ b/DDCond/CMakeLists.txt @@ -20,7 +20,7 @@ include_directories(${CMAKE_SOURCE_DIR}/DDCore/include #---DD4hepCond library -------------------------------------------------------------- file(GLOB sources src/*.cpp) add_library(DD4hepCond SHARED ${sources}) -target_link_libraries(DD4hepCond DD4hepCore ${ROOT_LIBRARIES}) +target_link_libraries(DD4hepCond DDCore ${ROOT_LIBRARIES}) if(DD4HEP_USE_XERCESC) add_definitions(-DDD4HEP_USE_XERCESC) diff --git a/DDCore/CMakeLists.txt b/DDCore/CMakeLists.txt index 1deef8d2cd8b4fcca852f43bed54dd4e6237f06f..040e28024c6013b95caced1e7638c6fe8bb9effa 100644 --- a/DDCore/CMakeLists.txt +++ b/DDCore/CMakeLists.txt @@ -2,8 +2,7 @@ cmake_minimum_required(VERSION 2.8.3 FATAL_ERROR) project(DDCore) -include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${ROOT_INCLUDE_DIR} ${DDSegmentation_INCLUDE_DIRS} ) - +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${DDSegmentation_INCLUDE_DIRS}) file(GLOB sources src/*.cpp src/Evaluator/*.cpp src/XML/*.cpp) file(GLOB plugin_sources src/plugins/*.cpp) @@ -13,7 +12,7 @@ if(DD4HEP_USE_BOOST) file(GLOB parser_sources src/parsers/*.cpp ) add_definitions(-DDD4HEP_USE_BOOST) else() - file(GLOB parser_sources ) + file(GLOB parser_sources) endif() file(GLOB headers include/DD4hep/*.h) @@ -37,22 +36,22 @@ if(NOT DD4HEP_NO_REFLEX) set(libraries ${libraries} Reflex) endif() -add_library(DD4hepCore SHARED ${sources} ${parser_sources} ) +add_library(DDCore SHARED ${sources} ${parser_sources} ) -target_link_libraries(DD4hepCore ${ROOT_LIBRARIES} ${XML_LIBRARIES} ${DDSegmentation_LIBRARIES} Geom ${libraries}) +target_link_libraries(DDCore ${ROOT_LIBRARIES} ${XML_LIBRARIES} ${DDSegmentation_LIBRARIES} Geom ${libraries}) ## generates rootmap and installs the library add_dd4hep_plugin(DD4hepPlugins SHARED ${plugin_sources}) -target_link_libraries(DD4hepPlugins ${ROOT_LIBRARIES} ${XML_LIBRARIES} DD4hepCore Geom ${libraries}) +target_link_libraries(DD4hepPlugins ${ROOT_LIBRARIES} ${XML_LIBRARIES} DDCore Geom ${libraries}) -SET_TARGET_PROPERTIES( DD4hepCore DD4hepPlugins PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION}) +SET_TARGET_PROPERTIES( DDCore DD4hepPlugins PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION}) #--- install target------------------------------------- install(DIRECTORY include/DD4hep include/XML DESTINATION include PATTERN ".svn" EXCLUDE ) -install(TARGETS DD4hepCore +install(TARGETS DDCore RUNTIME DESTINATION bin LIBRARY DESTINATION lib ) diff --git a/DDDetectors/CMakeLists.txt b/DDDetectors/CMakeLists.txt index fd4231d78e23e27c7a6b38b74722050a80f3f1a4..e60ea5e1cb897f646ef405bbda0daed1c6110edf 100644 --- a/DDDetectors/CMakeLists.txt +++ b/DDDetectors/CMakeLists.txt @@ -23,7 +23,7 @@ include_directories(${CMAKE_SOURCE_DIR}/DDCore/include file(GLOB sources src/*.cpp ) add_library( DD4hepDetectors SHARED ${sources}) -target_link_libraries( DD4hepDetectors DD4hepCore DDRec ${ROOT_LIBRARIES} ) +target_link_libraries( DD4hepDetectors DDCore DDRec ${ROOT_LIBRARIES} ) # #---Rootmap generation-------------------------------------------------------------- dd4hep_generate_rootmap( DD4hepDetectors ) diff --git a/DDEve/CMakeLists.txt b/DDEve/CMakeLists.txt index e57a2913b8adcf482cefbe56b962f802e399dd35..b06b72556e6af06d1d46fee920d1bf905cb86a3b 100644 --- a/DDEve/CMakeLists.txt +++ b/DDEve/CMakeLists.txt @@ -28,7 +28,7 @@ endif() #---DD4hepEve library -------------------------------------------------------------- file(GLOB headers include/DDEve/*.h) file(GLOB sources src/*.cpp) -set( eve_link_libraries DD4hepCore ${ROOT_EVE_LIBRARIES} -lFTGL ) +set( eve_link_libraries DDCore ${ROOT_EVE_LIBRARIES} -lFTGL ) #--------------------------- Support for the LCIO data I/O ------------------------ if(DD4HEP_USE_LCIO) find_package(LCIO REQUIRED) diff --git a/DDG4/CMakeLists.txt b/DDG4/CMakeLists.txt index 3b42c86abecfb27b2f32713a438e1408ac586e2d..cae53dbc13eb242f83e983da1c6e472f74c98d96 100644 --- a/DDG4/CMakeLists.txt +++ b/DDG4/CMakeLists.txt @@ -19,14 +19,14 @@ if(NOT DD4HEP_USE_XERCESC) endif() # add_library(DD4hepG4 SHARED ${sources}) -target_link_libraries(DD4hepG4 DD4hepCore ${ROOT_LIBRARIES} ${Geant4_LIBRARIES}) +target_link_libraries(DD4hepG4 DDCore ${ROOT_LIBRARIES} ${Geant4_LIBRARIES}) SET_TARGET_PROPERTIES( DD4hepG4 PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION}) #----------------------------------------------------------------------------------- # No rootmap for link libraries! #--------------------------- Legacy libraries (for Frank) ------------------------- file(GLOB legacy_sources legacy/*.cpp) add_library(DD4hepG4Legacy SHARED ${legacy_sources}) -target_link_libraries(DD4hepG4Legacy DD4hepCore DD4hepG4 ${ROOT_LIBRARIES} ${Geant4_LIBRARIES}) +target_link_libraries(DD4hepG4Legacy DDCore DD4hepG4 ${ROOT_LIBRARIES} ${Geant4_LIBRARIES}) SET_TARGET_PROPERTIES(DD4hepG4Legacy PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION}) dd4hep_generate_rootmap(DD4hepG4Legacy) @@ -37,7 +37,7 @@ root_generate_dictionary( G__DDG4 ${CMAKE_CURRENT_SOURCE_DIR}/python/DDG4Dict.C file(GLOB plugins_sources plugins/*.cpp) list(APPEND plugins_sources G__DDG4.cxx) add_library(DD4hepG4Plugins SHARED ${plugins_sources}) -target_link_libraries(DD4hepG4Plugins DD4hepCore DD4hepG4 ${ROOT_LIBRARIES} ${Geant4_LIBRARIES}) +target_link_libraries(DD4hepG4Plugins DDCore DD4hepG4 ${ROOT_LIBRARIES} ${Geant4_LIBRARIES}) SET_TARGET_PROPERTIES(DD4hepG4Plugins PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION}) dd4hep_generate_rootmap(DD4hepG4Plugins) @@ -48,20 +48,20 @@ if(DD4HEP_USE_LCIO) include_directories( ${LCIO_INCLUDE_DIRS} ) file(GLOB lcio_sources lcio/*.cpp) add_library(DD4hepG4LCIO SHARED ${lcio_sources}) - target_link_libraries(DD4hepG4LCIO DD4hepCore DD4hepG4 ${Geant4_LIBRARIES} ${LCIO_LIBRARIES} ${ROOT_LIBRARIES} EG) + target_link_libraries(DD4hepG4LCIO DDCore DD4hepG4 ${Geant4_LIBRARIES} ${LCIO_LIBRARIES} ${ROOT_LIBRARIES} EG) SET_TARGET_PROPERTIES(DD4hepG4LCIO PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION}) dd4hep_generate_rootmap(DD4hepG4LCIO) endif() #----------------------------------------------------------------------------------- add_executable(g4gdmlDisplay g4gdmlDisplay.cpp) -target_link_libraries(g4gdmlDisplay DD4hepG4 DD4hepCore) +target_link_libraries(g4gdmlDisplay DD4hepG4 DDCore) #----------------------------------------------------------------------------------- add_executable(g4FromXML g4FromXML.cpp) -target_link_libraries(g4FromXML DD4hepG4 DD4hepCore) +target_link_libraries(g4FromXML DD4hepG4 DDCore) #----------------------------------------------------------------------------------- add_executable( dd_sim ddsim.cpp) -target_link_libraries(dd_sim DD4hepCore DD4hepG4) +target_link_libraries(dd_sim DDCore DD4hepG4) #--- install target------------------------------------- install(DIRECTORY include/DDG4 diff --git a/DDRec/CMakeLists.txt b/DDRec/CMakeLists.txt index 3190337bd8aae2f25fed295fbbecf8c37c44ef1c..e6a72ab95e0cdee6bd27e4289559dc12f67faaa7 100644 --- a/DDRec/CMakeLists.txt +++ b/DDRec/CMakeLists.txt @@ -9,7 +9,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include file(GLOB sources src/*.cpp) -set(rec_link_libraries DD4hepCore ${DDSegmentation_LIBRARIES} ${ROOT_LIBRARIES} Geom Reflex) +set(rec_link_libraries DDCore ${DDSegmentation_LIBRARIES} ${ROOT_LIBRARIES} Geom Reflex) #--------------------------- GEAR wrappers for backward compatibility ----------- if(DD4HEP_USE_GEAR) diff --git a/DDTest/CMakeLists.txt b/DDTest/CMakeLists.txt index 39096aafc7d4c645da7bb23fc23f93410709a6a7..28c9cbcb5e1762a62227b37167d56f8b97fbd2f0 100644 --- a/DDTest/CMakeLists.txt +++ b/DDTest/CMakeLists.txt @@ -15,9 +15,9 @@ if(DD4HEP_USE_GEANT4) endif() if(DD4HEP_USE_GEANT4) - link_libraries(DD4hepG4 DD4hepCore DDRec DDSegmentation ${ROOT_LIBRARIES} Reflex ${Geant4_LIBRARIES}) + link_libraries(DD4hepG4 DDCore DDRec DDSegmentation ${ROOT_LIBRARIES} Reflex ${Geant4_LIBRARIES}) else() - link_libraries(DD4hepCore DDRec DDSegmentation ${ROOT_LIBRARIES} Reflex ${Geant4_LIBRARIES}) + link_libraries(DDCore DDRec DDSegmentation ${ROOT_LIBRARIES} Reflex ${Geant4_LIBRARIES}) endif() #-------------------------------------------------- diff --git a/UtilityApps/CMakeLists.txt b/UtilityApps/CMakeLists.txt index 790766db8bf022803853c68be81b30808c5c7a0a..16d3e5a2edd35e1d75e8cc5f0f15c24b18cb96df 100644 --- a/UtilityApps/CMakeLists.txt +++ b/UtilityApps/CMakeLists.txt @@ -9,22 +9,22 @@ include_directories( ${CMAKE_SOURCE_DIR}/DDCore/include #----------------------------------------------------------------------------------- add_executable(geoDisplay src/display.cpp) -target_link_libraries(geoDisplay DD4hepCore ) +target_link_libraries(geoDisplay DDCore ) #----------------------------------------------------------------------------------- add_executable(geoConverter src/converter.cpp) -target_link_libraries(geoConverter DD4hepCore) +target_link_libraries(geoConverter DDCore) #----------------------------------------------------------------------------------- add_executable(geoPluginRun src/plugin_runner.cpp) -target_link_libraries(geoPluginRun DD4hepCore) +target_link_libraries(geoPluginRun DDCore) #----------------------------------------------------------------------------------- add_executable( print_materials src/print_materials.cpp) -target_link_libraries(print_materials DD4hepCore DDRec) +target_link_libraries(print_materials DDCore DDRec) #----------------------------------------------------------------------------------- add_executable( materialScan src/materialScan.cpp) -target_link_libraries(materialScan DD4hepCore DDRec) +target_link_libraries(materialScan DDCore DDRec) #----------------------------------------------------------------------------------- add_executable( dumpdetector src/dumpdetector.cpp) -target_link_libraries(dumpdetector DD4hepCore DDRec) +target_link_libraries(dumpdetector DDCore DDRec) #----------------------------------------------------------------------------------- @@ -35,11 +35,11 @@ if(DD4HEP_USE_LCIO) add_executable(teveDisplay src/teve_display.cpp G__teve.cxx src/next_event_lcio.cpp) add_executable(test_surfaces src/test_surfaces.cpp ) - target_link_libraries(test_surfaces DD4hepCore DDRec ${LCIO_LIBRARIES} ) + target_link_libraries(test_surfaces DDCore DDRec ${LCIO_LIBRARIES} ) else() add_executable(teveDisplay src/teve_display.cpp G__teve.cxx src/next_event_dummy.cpp) endif() -target_link_libraries( teveDisplay DD4hepCore ${ROOT_EVE_LIBRARIES} DDRec ${LCIO_LIBRARIES} ) +target_link_libraries( teveDisplay DDCore ${ROOT_EVE_LIBRARIES} DDRec ${LCIO_LIBRARIES} ) #--- install target------------------------------------- diff --git a/cmake/DD4hepConfig.cmake.in b/cmake/DD4hepConfig.cmake.in index 03b21f05c1bc430cf39f4e702ebf1d8a11c37269..2979b81cbe9698c0918984f0c42454e67b10d682 100644 --- a/cmake/DD4hepConfig.cmake.in +++ b/cmake/DD4hepConfig.cmake.in @@ -50,7 +50,7 @@ INCLUDE( ${DD4hep_ROOT}/cmake/DD4hepMacros.cmake ) # additional components are set by cmake in variable PKG_FIND_COMPONENTS # first argument should be the package name if(@DD4HEP_USE_GEANT4@) - CHECK_PACKAGE_LIBS(DD4hep DD4hepCore DDSegmentation DDRec DD4hepG4) + CHECK_PACKAGE_LIBS(DD4hep DDCore DDSegmentation DDRec DD4hepG4) #--- if geant 4 was built with CLHEP we need to export this to client packages if( @GEANT4_USE_CLHEP@) @@ -60,7 +60,7 @@ if(@DD4HEP_USE_GEANT4@) set( Geant4_DIR @Geant4_DIR@) else() - CHECK_PACKAGE_LIBS(DD4hep DD4hepCore DDSegmentation DDRec) + CHECK_PACKAGE_LIBS(DD4hep DDCore DDSegmentation DDRec) endif()