Could not find a package configuration file provided by "G4mpi" with any of
the following names:
G4mpiConfig.cmake
g4mpi-config.cmake
Add the installation prefix of "G4mpi" to CMAKE_PREFIX_PATH or set
とか言われたのでcmakeの時に
-DCMAKE_PREFIX_PATH=~~
と追加
-DCMAKE_CXX_COMPILER=mpicxx もなんとなく追加で書いといた
これでサンプルはコンパイルできた。
サンプルにちゃんと書いてあった
cmake -DG4mpi_DIR=
-DGeant4_DIR=