Commit Graph

2 Commits

Author SHA1 Message Date
lars 38a0273087 link run_pbwo4 to build root in both build modes
Superbuild: install step creates build/run_pbwo4 symlink pointing at
the executable in build/minicalosim-build/.
Regular build: CMAKE_RUNTIME_OUTPUT_DIRECTORY ensures the executable
lands in build/ regardless of generator.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-11 11:10:44 +02:00
lars e265a6aa63 add superbuild to compile Geant4 from submodule source
superbuild/CMakeLists.txt uses ExternalProject_Add to give three targets:

  cmake -B build -S superbuild/
  cmake --build build --target geant4      # build Geant4 → build/geant4-install
  cmake --build build --target run_pbwo4   # build minicalosim against it
  cmake --build build                      # both

The existing root CMakeLists.txt (find_package Geant4) is unchanged
for the system-Geant4 workflow.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-11 10:41:47 +02:00