cmake_minimum_required(VERSION 2.8.7)

get_filename_component(dirName ${CMAKE_CURRENT_LIST_DIR} NAME)
if(thisTarget)
  set (thisTarget "${thisTarget}.${dirName}")
else(thisTarget)
  set (thisTarget "${dirName}")
endif(thisTarget)
message(STATUS "Source : Specified  /  Target : ${thisTarget}")

include_directories(InclusiveDPM/include)

add_library(${thisTarget} OBJECT
### DPM
  DPM/phojet.f
  DPM/pythia6115.f
  DPM/dpmjet3.f
  DPM/Interface/cdpmjet.f 

### EPOS
  EPOS/epos-bas-lhc-v3700.f 
  EPOS/epos-con-lhc-v3700.f 
  EPOS/epos-dky-lhc-v3700.f
  EPOS/epos-dro-lhc-v3700.f  
  EPOS/epos-ems-lhc-v3700.f  
  EPOS/epos-fra-lhc-v3700.f  
  EPOS/epos-hnb-lhc-v3700.f  
  EPOS/epos-ico-lhc-v3700.f  
  EPOS/epos-ids-lhc-v3700.f  
  EPOS/epos-int-lhc-v3700.f  
  EPOS/epos-jps-lhc-v3700.f  
  EPOS/eposm.f  
  EPOS/epos-omg-lhc-v3700.f  
  EPOS/epos-par-lhc-v3700.f  
  EPOS/epos-qsh-lhc-v3700.f  
  EPOS/epos-rsh-lhc-v3700.f  
  EPOS/epos-sem-lhc-v3700.f  
  EPOS/epos-tim-lhc-v3700.f  
  EPOS/eposu_no.f  
  EPOS/epos-uti-lhc-v3700.f  
  EPOS/epos-xan-lhc-v3700.f  
  EPOS/epos-xpr-lhc-v3700.f  
  EPOS/epos_j.f 
  EPOS/Interface/cepos.f
  EPOS/Interface/cepos2cosB.f
  EPOS/Interface/cepos2cos.f90

### Fritiof
  Fritiof/aadn.f
  Fritiof/aado.f
  Fritiof/aath.f
  Fritiof/aatj.f
  Fritiof/Interface/cfrevent.f
  Fritiof/Interface/chALund.f

### Gheisha
  Gheisha/acfsin.f
  Gheisha/add.f
  Gheisha/ang.f
  Gheisha/atomas.f
  Gheisha/captur.f
  Gheisha/casal0.f
  Gheisha/casaom.f
  Gheisha/casasm.f
  Gheisha/casasp.f
  Gheisha/casax0.f
  Gheisha/casaxm.f
  Gheisha/casfrg.f
  Gheisha/cask0.f
  Gheisha/cask0b.f
  Gheisha/caskm.f
  Gheisha/caskp.f
  Gheisha/casl0.f
  Gheisha/casn.f
  Gheisha/casnb.f
  Gheisha/casom.f
  Gheisha/casp.f
  Gheisha/caspb.f
  Gheisha/caspim.f
  Gheisha/caspip.f
  Gheisha/cassm.f
  Gheisha/cassp.f
  Gheisha/casx0.f
  Gheisha/casxm.f
  Gheisha/chanwx.f
  Gheisha/cinema.f
  Gheisha/compo.f
  Gheisha/coranh.f
  Gheisha/coscat.f
  Gheisha/defs.f
  Gheisha/defs1.f
  Gheisha/dlpnuc.f
  Gheisha/dlpsor.f
  Gheisha/dotes2.f
  Gheisha/dotnuc.f
  Gheisha/dpdnuc.f
  Gheisha/exnu.f
  Gheisha/fctcos.f
  Gheisha/fermi.f
  Gheisha/fissio.f
  Gheisha/gdpdk.f
  Gheisha/genxpt.f
  Gheisha/gheini.f
  Gheisha/gheish.f
  Gheisha/ghstop.f
  Gheisha/ghtype.f
  Gheisha/gmate.f
  Gheisha/gnslwd.f
  Gheisha/gpart.f
  Gheisha/gpdk.f
  Gheisha/gpghei.f
  Gheisha/gpions.f
  Gheisha/gspart.f
  Gheisha/gutil.f
  Gheisha/hadini.f
  Gheisha/hadnuc.f
  Gheisha/kmabs.f
  Gheisha/lengtx.f
  Gheisha/lor.f
  Gheisha/minv.f
  Gheisha/nbanh.f
  Gheisha/nfac.f
  Gheisha/normal.f
  Gheisha/nucrec.f
  Gheisha/pbanh.f
  Gheisha/pcsdat.f
  Gheisha/pdgtyp.f
  Gheisha/phasp.f
  Gheisha/phpnuc.f
  Gheisha/pimabs.f
  Gheisha/pmltpc.f
  Gheisha/poisso.f
  Gheisha/ranres.f
  Gheisha/rotes2.f
  Gheisha/rtmi.f
  Gheisha/selfab.f
  Gheisha/setcur.f
  Gheisha/settrk.f
  Gheisha/sginit.f
  Gheisha/steep.f
  Gheisha/steeq.f
  Gheisha/steer.f
  Gheisha/stees.f
  Gheisha/stpair.f
  Gheisha/sub.f
  Gheisha/tdelay.f
  Gheisha/trac.f
  Gheisha/twob.f
  Gheisha/twoclu.f
  Gheisha/Interface/ccos2gheCode.f
  Gheisha/Interface/cghe2cos.f
  Gheisha/Interface/cgheDecay.f
  Gheisha/Interface/chAGheisha.f
  Gheisha/Interface/cxsecGheisha.f

### InclusiveDPM
  InclusiveDPM/Interface/cincdpm3.f
  InclusiveDPM/int-common/int-crosssection.f
  InclusiveDPM/int-common/int-engine.f
  InclusiveDPM/int-common/int-initvarip.f
  InclusiveDPM/int-dpmjet3/int-distbndry.f
  InclusiveDPM/int-dpmjet3/int-multi.f
  InclusiveDPM/int-dpmjet3/int-sample-cospt.f
  InclusiveDPM/int-dpmjet3/int-sample-cospt-0.f
  InclusiveDPM/int-dpmjet3/int-v1.f
  InclusiveDPM/int-dpmjet3/int-v2.f
  InclusiveDPM/int-dpmjet3/int-v3.f
  InclusiveDPM/int-dpmjet3/int-v4.f
  InclusiveDPM/int-dpmjet3/int-v5.f
  InclusiveDPM/int-dpmjet3/int-v6.f
  InclusiveDPM/int-dpmjet3/int-v7.f
  InclusiveDPM/int-dpmjet3/int-v8.f
  InclusiveDPM/int-dpmjet3/int-v9.f
  InclusiveDPM/int-dpmjet3/int-variblock.f
  InclusiveDPM/int-dpmjet3/int-vinterface2.f
  InclusiveDPM/int-dpmjet3/int-x1.f
  InclusiveDPM/int-dpmjet3/int-x2.f
  InclusiveDPM/int-dpmjet3/int-x3.f
  InclusiveDPM/int-dpmjet3/int-x4.f
  InclusiveDPM/int-dpmjet3/int-x5.f
  InclusiveDPM/int-dpmjet3/int-x6.f
  InclusiveDPM/int-dpmjet3/int-x7.f
  InclusiveDPM/int-dpmjet3/int-x8.f
  InclusiveDPM/int-dpmjet3/int-x9.f
  InclusiveDPM/int-dpmjet3/int-xinterface2.f
  InclusiveDPM/math/math-bspl.f
  InclusiveDPM/math/math-character.f
  InclusiveDPM/math/math-heapsort.f
  InclusiveDPM/math/math-lorentz.f

### JAM
  Jam/gfortran.f
  Jam/jam.f
  Jam/jamana.f
  Jam/jambuu.f
  Jam/jamcoll.f
  Jam/jamcross.f
  Jam/jamdec.f
  Jam/jamdummy.f
  Jam/jamhard.f
  Jam/jamhij.f
  Jam/jampdf.f
  Jam/jamsoft.f
  Jam/jampyjet.f
  Jam/jampysigh.f
  Jam/jampythia.f 
  Jam/jamdat.f 
  Jam/Interface/cfragment.f
  Jam/Interface/cjam.f

### NUCFRG
  NUCFRG/abbg.f
  NUCFRG/Interface/csampNucFrag.f
  NUCFRG/Interface/csampFermiMom.f90
  NUCFRG/Interface/csampHFMom.f90

### PHITS
  PHITS/cphits2cos.f
  PHITS/cphitsOut.f
  PHITS/cprePhits.f
  PHITS/bert-bl0.f
  PHITS/bert-bl1.f
  PHITS/bert-bl2.f
  PHITS/ndata01blk.f
  PHITS/qmddflt.f
  PHITS/gemset.f
  PHITS/Evapo/cnevap.f
  PHITS/JQMD/jqmd.f
  PHITS/Bertini/cbert.f
  PHITS/Com/ndata01.f
  PHITS/Com/phitsrn.f
  PHITS/Com/utl01.f
  PHITS/Com/kftp.f
  PHITS/Xsec/phitsXsec.f
  PHITS/Nela/nelst.f
  PHITS/Interface/cphits.f
  PHITS/Interface/cjqmd.f
  PHITS/Interface/cbertini.f
  PHITS/Interface/cnelas.f

### QGS
  QGS/qgsjet-II-04.f
  QGS/qgprox.f
  QGS/Interface/cQGSjet.f

### Sibyll
  Sibyll/sibyll2.3c.f
  Sibyll/GASDEV.f
  Sibyll/sib_cms.f
  Sibyll/Interface/csibSetStblPtcl.f
  Sibyll/Interface/csibyll.f
  Sibyll/Interface/csibyllXs.f
  Sibyll/Interface/csibyllXsAAir.f

### Sofia
  Sofia/sofia.f
  Sofia/jetset74dp.f
  Sofia/rndm.f
  Sofia/Interface/csofia.f
  )
