Skip to content

Commit

Permalink
Allow use of external Celeritas (#10)
Browse files Browse the repository at this point in the history
Supports co-working with an existing install of Celeritas to avoid duplicate symbols or over-compilation. Primary use case is supporting development of common frontend to Celeritas/AdePT for experiment integration testing.
  • Loading branch information
drbenmorgan authored Jun 12, 2024
1 parent c1f4a93 commit 9fd8796
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,17 @@ g4vg_set_default(CMAKE_CXX_EXTENSIONS OFF)
find_package(Geant4 REQUIRED)
find_package(VecGeom REQUIRED)

# Celeritas *might* be coming from a superproject...
if(NOT Celeritas_FOUND)
find_package(Celeritas QUIET)
if(NOT Celeritas_FOUND)
add_subdirectory(external)
endif()
endif()

#----------------------------------------------------------------------------#
# Add code

add_subdirectory(external)
add_subdirectory(src)

#----------------------------------------------------------------------------#
Expand Down

0 comments on commit 9fd8796

Please sign in to comment.