From 77e8a4717a678caff1642749af341725d6979720 Mon Sep 17 00:00:00 2001
From: Frank Gaede <frank.gaede@desy.de>
Date: Fri, 31 Jan 2014 16:20:26 +0000
Subject: [PATCH]  - added some documentation for building the examples

---
 ReadMe.txt | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/ReadMe.txt b/ReadMe.txt
index 6130f51ea..71222af8e 100644
--- a/ReadMe.txt
+++ b/ReadMe.txt
@@ -152,8 +152,18 @@ To build and run the simulation examples Geant4 will be required.
 Before any of the (new) examples in the ./examples directory can be build,
 one needs to set the environment:
 
- source __path_where_DD4hep_is_installed_/bin/thisdd4hep.sh
- 
+  source __path_where_DD4hep_is_installed_/bin/thisdd4hep.sh
+  source __path_to_ilcsoft_installation/init_ilcsoft.sh
+
+or, optionally one can initialize ROOT only, and then specify all dependencies
+on the cmake command line - replace 'cmake ..' below with, e.g:
+
+  source /space/ilcsoft/root/5.34.05/bin/thisroot.sh 
+  cmake -DDD4hep_DIR=~/DD4Hep/trunk/ -DGeant4_DIR=/space/ilcsoft/geant4/9.6.p01/lib/Geant4-9.6.1  \
+        -D LCIO_DIR=/space/ilcsoft/v01-17-04/lcio/v02-04-03 -D GEAR_DIR=/space/ilcsoft/v01-17-04/gear/v01-03-01  ..
+
+(change pathes according to your environment)
+
 
 - then building the examples should be very straight forward. e.g:
    (check for additional instructions in example subdirectory)
@@ -171,7 +181,6 @@ or build all examples in one go:
   make -j install
  
 
-
 - before running the example, initialize the environment:
   . ./bin/thisILDExDet.sh 
 
-- 
GitLab