Skip to content

Commit

Permalink
Move Celeritas files into its own directory
Browse files Browse the repository at this point in the history
  • Loading branch information
SAKIB RAHMAN committed Dec 13, 2024
1 parent 905a879 commit 7d49231
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions DDG4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ target_link_libraries(DDG4
PUBLIC
DD4hep::DDCore
Geant4::Interface
Celeritas::corecel
Celeritas::accel
)
#
#Ensure our own includes come before those of the system
Expand Down Expand Up @@ -104,6 +102,18 @@ IF(TARGET LCIO::lcio)

ENDIF()

IF(DD4HEP_USE_CELERITAS)

dd4hep_add_plugin(DDG4Celeritas
SOURCES celeritas/*.cpp
INCLUDES $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/celeritas>
USES DD4hep::DDG4 Celeritas::accel Celeritas::corecel
)
install(TARGETS DDG4Celeritas EXPORT DD4hep LIBRARY DESTINATION lib)
set_target_properties(DDG4Celeritas PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION})

ENDIF()

IF(TARGET EDM4HEP::edm4hep)
dd4hep_add_plugin(DDG4EDM4HEP
SOURCES edm4hep/*.cpp
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion DDG4/src/Geant4PhysicsList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <DD4hep/InstanceCount.h>
#include <DD4hep/Printout.h>
#include <DD4hep/Plugins.h>
#include <DDG4/Celeritas.h>
#include <DDG4/celeritas/Celeritas.h>

// Geant4 include files
#include <G4VPhysicsConstructor.hh>
Expand Down

0 comments on commit 7d49231

Please sign in to comment.