]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/PROOF-INF.STEERBase/SETUP.C
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / STEER / PROOF-INF.STEERBase / SETUP.C
index 3fbfb309edbc9bae99c840417038002aca8d3412..5554b01ebf72f436519e9d8be1e2e29684ff779e 100644 (file)
@@ -5,16 +5,20 @@ void SETUP()
    gSystem->Load("libNet");
    gSystem->Load("libTree");
    gSystem->Load("libPhysics");
+   gSystem->Load("libMinuit");
 
    // Load the STEERBase library
-   TString dypath = gSystem->GetDynamicPath();
-   dypath.Prepend(".:");
+   TString dypath = TString::Format("%s:%s", gSystem->WorkingDirectory(), gSystem->GetDynamicPath());
    gSystem->SetDynamicPath(dypath);
    gSystem->Load("libSTEERBase");
 
    // Set the include paths
-   gROOT->ProcessLine(".include STEERBase");
+   gROOT->ProcessLine(".include STEERBase/STEERBase");
 
    // Set our location, so that other packages can find us
    gSystem->Setenv("STEERBase_INCLUDE", "STEERBase/STEERBase");
+
+   // Set our lib coordinates, so that other packages can link to us
+   TString lib = TString::Format("-L%s -lSTEERBase", gSystem->WorkingDirectory());
+   gSystem->Setenv("STEERBase_LIBS", lib.Data());
 }