diff --git a/DDEve/CMakeLists.txt b/DDEve/CMakeLists.txt index ce36212516cc13c497286ffa9117a288e6a1e375..d3d16e2bc9330760664ee6e3a94ba6ffce521d11 100644 --- a/DDEve/CMakeLists.txt +++ b/DDEve/CMakeLists.txt @@ -20,6 +20,7 @@ target_include_directories(DDEve_Interface $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include> ) +target_link_libraries(DDEve_Interface INTERFACE ROOT::Core ROOT::Eve ROOT::Gui ROOT::Graf3d ROOT::RGL ROOT::EG) new_dd4hep_add_dictionary(G__DDEve SOURCES ${DDCore_INCLUDE_DIRS}/include/ROOT/Warnings.h include/DDEve/*.h @@ -38,7 +39,7 @@ endif() new_dd4hep_add_plugin (DDEvePlugins SOURCES src/*.cpp ${DDEVE_LCIO_SOURCES} GENERATED G__DDEve.cxx - LINK_LIBRARIES DDCore DDEve_Interface ROOT::Eve ${DDEVE_LCIO_LINK} + LINK_LIBRARIES DDCore DDEve_Interface ${DDEVE_LCIO_LINK} ) if(DD4HEP_USE_GEANT4) @@ -53,7 +54,7 @@ endif() #----------------------------------------------------------------------------------- add_executable(ddeve DDEve/DDEve.cpp) -target_link_libraries(ddeve DDEve_Interface ROOT::Core) +target_link_libraries(ddeve DDEve_Interface) #----------------------------------------------------------------------------------- #---Package installation procedure(s) ------------------------------------- diff --git a/cmake/DD4hepBuild.cmake b/cmake/DD4hepBuild.cmake index 9b43f8efc4c6d61269f5271fbdab4e54b8ea4fdb..2df8a8555d490d161be0a8985f2edef0931b10ab 100644 --- a/cmake/DD4hepBuild.cmake +++ b/cmake/DD4hepBuild.cmake @@ -1666,7 +1666,7 @@ macro(DD4HEP_SETUP_ROOT_TARGETS) # ) #endforeach() # Non-standard ROOT components we need later on, we "import" them by hand for now - foreach(LIB PyROOT Geom GenVector Eve Graf3d RGL Gui RIO MathCore MathMore) + foreach(LIB PyROOT Geom GenVector Eve Graf3d RGL Gui RIO MathCore MathMore EG EGL) ADD_LIBRARY(ROOT::${LIB} INTERFACE IMPORTED GLOBAL) TARGET_LINK_LIBRARIES(ROOT::${LIB} INTERFACE ${LIB}) # SET_TARGET_PROPERTIES(ROOT::${LIB}