diff --git a/DDCore/CMakeLists.txt b/DDCore/CMakeLists.txt index 83273c35964ae7bffa908b7468219534c83d5351..109b0f28c5c57a048ff5b02e41c14804e2495cdc 100644 --- a/DDCore/CMakeLists.txt +++ b/DDCore/CMakeLists.txt @@ -18,7 +18,8 @@ dd4hep_package( DDCore #---Generate ROOT dictionary------------------------------------------------------ dd4hep_add_dictionary( G__DD4hep - SOURCES include/DD4hep/*.h + SOURCES include/ROOT/Warnings.h + include/DD4hep/*.h include/DD4hep/detail/*.h include/XML/*.h ${DDSegmentation_INCLUDE_DIRS}/DDSegmentation/BitField64.h diff --git a/DDEve/CMakeLists.txt b/DDEve/CMakeLists.txt index a9bbaa1a5d2a0ba6d1b6364856bf0913da60fdc4..5f879904642a185f789c3ac169ab097b77b26027 100644 --- a/DDEve/CMakeLists.txt +++ b/DDEve/CMakeLists.txt @@ -15,7 +15,7 @@ dd4hep_package( DDEve # #---Add Plugin Library----------------------------------------------------- dd4hep_add_dictionary ( G__DDEve - SOURCES include/DDEve/*.h + SOURCES ${DDCore_INCLUDE_DIRS}/include/ROOT/Warnings.h include/DDEve/*.h LINKDEF ${DDCore_INCLUDE_DIRS}/include/ROOT/LinkDef.h ) # @@ -25,7 +25,7 @@ dd4hep_add_plugin ( DDEve SOURCES src/*.cpp if(DD4HEP_USE_GEANT4) dd4hep_add_dictionary ( G__DDG4IO - SOURCES DDEve/DDG4IO.C + SOURCES ${DDCore_INCLUDE_DIRS}/include/ROOT/Warnings.h DDEve/DDG4IO.C LINKDEF ${DDCore_INCLUDE_DIRS}/include/ROOT/LinkDef.h OPTIONAL DDG4 ) diff --git a/DDG4/CMakeLists.txt b/DDG4/CMakeLists.txt index e94633d296f17016c39efded743c8d6bd84786c3..99440da5e5408de8e0904dfaee188bb4a3a921aa 100644 --- a/DDG4/CMakeLists.txt +++ b/DDG4/CMakeLists.txt @@ -20,7 +20,7 @@ dd4hep_add_package_library(DDG4 SOURCES src/*.cpp ) dd4hep_add_plugin(DDG4Legacy SOURCES legacy/*.cpp) #----------------------------------------------------------------------------------- dd4hep_add_dictionary( G__DDG4 - SOURCES python/DDG4Dict.C + SOURCES ${DDCore_INCLUDE_DIRS}/include/ROOT/Warnings.h python/DDG4Dict.C LINKDEF ${DDCore_INCLUDE_DIRS}/include/ROOT/LinkDef.h ) #--------------------------- Plugin library for the simulation framework --------- @@ -30,12 +30,13 @@ dd4hep_add_plugin(DDG4Plugins ) #--------------------------- Plugin library for the simulation framework --------- dd4hep_add_dictionary(G__DDG4Python - SOURCES src/python/DDG4Python.C + SOURCES ${DDCore_INCLUDE_DIRS}/include/ROOT/Warnings.h src/python/DDG4Python.C LINKDEF ${DDCore_INCLUDE_DIRS}/include/ROOT/LinkDef.h OPTIONAL [PYTHON REQUIRED] ) #--------------------------- Plugin library for the simulation framework --------- -dd4hep_add_dictionary(G__DDPython SOURCES tpython/DDPython.C +dd4hep_add_dictionary(G__DDPython + SOURCES ${DDCore_INCLUDE_DIRS}/include/ROOT/Warnings.h tpython/DDPython.C LINKDEF ${DDCore_INCLUDE_DIRS}/include/ROOT/LinkDef.h OPTIONAL [PYTHON REQUIRED] )