Skip to content
Snippets Groups Projects
Commit c1896814 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

LUCID_G4_SD: cmake fixes

Don't build objects into more than one library.
Instead, the component library should depend on the non-component library.
parent 08ff978d
No related branches found
No related tags found
No related merge requests found
......@@ -24,18 +24,17 @@ find_package( XercesC )
find_package( GTest )
# Component(s) in the package:
atlas_add_component( LUCID_G4_SD
src/*.cxx
src/components/*.cxx
INCLUDE_DIRS ${GEANT4_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS}
LINK_LIBRARIES ${GEANT4_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} GaudiKernel StoreGateLib SGtests LUCID_GeoModelLib LUCID_SimEvent G4AtlasToolsLib HitManagement )
atlas_add_library( LUCID_G4_SDLib
src/*.cxx
NO_PUBLIC_HEADERS LUCID_G4_SD
INCLUDE_DIRS ${GEANT4_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS}
LINK_LIBRARIES ${GEANT4_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} GaudiKernel CxxUtils StoreGateLib SGtests LUCID_GeoModelLib LUCID_SimEvent G4AtlasToolsLib HitManagement )
atlas_add_component( LUCID_G4_SD
src/components/*.cxx
INCLUDE_DIRS ${GEANT4_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS}
LINK_LIBRARIES ${GEANT4_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} GaudiKernel StoreGateLib SGtests LUCID_GeoModelLib LUCID_SimEvent G4AtlasToolsLib HitManagement LUCID_G4_SDLib )
atlas_add_test( LUCID_SensitiveDetector_gtest
SOURCES test/LUCID_SensitiveDetector_gtest.cxx
INCLUDE_DIRS ${GTEST_INCLUDE_DIRS} ${GEANT4_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS}
......
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