Skip to content

Commit

Permalink
Reorder linked libraries (HEP-FCC#67)
Browse files Browse the repository at this point in the history
Co-authored-by: jmcarcell <[email protected]>
  • Loading branch information
jmcarcell and jmcarcell authored Apr 24, 2024
1 parent fdaeb23 commit 89f0ac0
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 19 deletions.
9 changes: 5 additions & 4 deletions Detector/DetComponents/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@
file(GLOB _sources src/*.cpp)
gaudi_add_module(DetComponents
SOURCES ${_sources}
LINK k4FWCore::k4FWCore
LINK
DD4hep::DDCore
DD4hep::DDG4
DD4hep::DDRec
k4FWCore::k4FWCore
k4FWCore::k4Interface
Gaudi::GaudiAlgLib
Gaudi::GaudiKernel
EDM4HEP::edm4hep
ROOT::Core
ROOT::Hist
DD4hep::DDCore
DD4hep::DDG4
DD4hep::DDRec
)

install(TARGETS DetComponents
Expand Down
9 changes: 4 additions & 5 deletions Detector/DetStudies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,20 @@

find_package(ROOT COMPONENTS MathCore GenVector Geom Tree)

find_package(CLHEP)


#--- Add main module
file(GLOB _sources src/components/*.cpp)
gaudi_add_module(DetStudies
SOURCES ${_sources}
LINK k4FWCore::k4FWCore
LINK
DD4hep::DDCore
DD4hep::DDG4
k4FWCore::k4FWCore
k4FWCore::k4Interface
Gaudi::GaudiAlgLib
Gaudi::GaudiKernel
EDM4HEP::edm4hep
ROOT::Core
ROOT::Hist
DD4hep::DDCore
)

install(TARGETS DetStudies
Expand Down
14 changes: 8 additions & 6 deletions SimG4Components/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
file(GLOB _lib_sources src/*.cpp)
gaudi_add_module(SimG4Components
SOURCES ${_lib_sources}
LINK Gaudi::GaudiAlgLib
k4FWCore::k4FWCore
k4FWCore::k4Interface
SimG4Common
EDM4HEP::edm4hep
LINK
CLHEP::CLHEP
DD4hep::DDCore
DD4hep::DDG4
CLHEP::CLHEP
${Geant4_LIBRARIES}
SimG4Common
SimG4Interface
k4FWCore::k4FWCore
k4FWCore::k4Interface
EDM4HEP::edm4hep
Gaudi::GaudiAlgLib
)

add_test(NAME CrossingAngleBoost
Expand Down
4 changes: 2 additions & 2 deletions SimG4Fast/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
file(GLOB _lib_sources src/lib/*.cpp)
gaudi_add_library(SimG4Fast
SOURCES ${_lib_sources}
LINK Gaudi::GaudiAlgLib k4FWCore::k4FWCore SimG4Common EDM4HEP::edm4hep DD4hep::DDCore SimG4Interface)
LINK DD4hep::DDCore SimG4Common SimG4Interface Gaudi::GaudiAlgLib k4FWCore::k4FWCore EDM4HEP::edm4hep)


file(GLOB _module_sources src/components/*.cpp)
gaudi_add_module(SimG4FastPlugins
SOURCES ${_module_sources}
LINK Gaudi::GaudiAlgLib k4FWCore::k4FWCore SimG4Common EDM4HEP::edm4hep DD4hep::DDCore SimG4Interface SimG4Fast)
LINK DD4hep::DDCore SimG4Common SimG4Interface SimG4Fast Gaudi::GaudiAlgLib k4FWCore::k4FWCore EDM4HEP::edm4hep)

4 changes: 2 additions & 2 deletions SimG4Full/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
file(GLOB _lib_sources src/lib/*.cpp)
gaudi_add_library(SimG4Full
SOURCES ${_lib_sources}
LINK Gaudi::GaudiAlgLib k4FWCore::k4FWCore SimG4Common EDM4HEP::edm4hep ${Geant4_LIBRARIES} SimG4Interface)
LINK SimG4Common SimG4Interface Gaudi::GaudiAlgLib k4FWCore::k4FWCore EDM4HEP::edm4hep)

#target_include_directories(SimG4Full PUBLIC ${Geant4_INCLUDE_DIRS}
# $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
Expand All @@ -14,4 +14,4 @@ gaudi_add_library(SimG4Full
file(GLOB _module_sources src/components/*.cpp)
gaudi_add_module(SimG4FullPlugins
SOURCES ${_module_sources}
LINK Gaudi::GaudiAlgLib k4FWCore::k4FWCore SimG4Common EDM4HEP::edm4hep DD4hep::DDCore SimG4Interface SimG4Full)
LINK SimG4Full SimG4Common SimG4Interface Gaudi::GaudiAlgLib k4FWCore::k4FWCore EDM4HEP::edm4hep)

0 comments on commit 89f0ac0

Please sign in to comment.