CMakeLists.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Create a library called "libtpc" which includes the source files given in
  2. # the array .
  3. # The extension is already found. Any number of sources could be listed here.
  4. set(INCLUDE_DIRECTORIES
  5. ${BASE_INCLUDE_DIRECTORIES}
  6. ${CMAKE_SOURCE_DIR}/mpdfield
  7. ${CMAKE_SOURCE_DIR}/mcstack
  8. ${CMAKE_SOURCE_DIR}/passive
  9. ${CMAKE_SOURCE_DIR}/tpc
  10. ${CMAKE_SOURCE_DIR}/tof
  11. ${CMAKE_SOURCE_DIR}/lhetrack
  12. ${CMAKE_SOURCE_DIR}/kalman
  13. )
  14. Set(SYSTEM_INCLUDE_DIRECTORIES
  15. ${ROOT_INCLUDE_DIR}
  16. ${CLHEP_INCLUDE_DIR}
  17. ${Boost_INCLUDE_DIRS}
  18. )
  19. include_directories(${INCLUDE_DIRECTORIES})
  20. Include_Directories(SYSTEM ${SYSTEM_INCLUDE_DIRECTORIES})
  21. set(LINK_DIRECTORIES
  22. ${ROOT_LIBRARY_DIR}
  23. ${FAIRROOT_LIBRARY_DIR}
  24. )
  25. link_directories(${LINK_DIRECTORIES})
  26. # List of source files
  27. set(SRCS
  28. TaskHelpers.cxx
  29. TpcContFact.cxx
  30. TpcDetector.cxx
  31. TpcGas.cxx
  32. TpcGeo.cxx
  33. TpcGeoPar.cxx
  34. TpcPoint.cxx
  35. MpdTpcSector.cxx
  36. TpcTimeBin.cxx
  37. MpdTpcClusterFinderTask.cxx
  38. MpdTpcDigit.cxx
  39. MpdTpcPeak.cxx
  40. MpdTpcFoundHit.cxx
  41. MpdTpcClusterFinderQAHistograms.cxx
  42. MpdParticleIdentification.cxx
  43. MpdTpcDigitizerTask.cxx
  44. MpdTpcDigitizerQAHistograms.cxx
  45. MpdTpc2dCluster.cxx
  46. MpdTpcHit.cxx
  47. MpdTpcHitProducer.cxx
  48. MpdTpcSectorGeo.cxx
  49. MpdTpcDigitizerAZ.cxx
  50. MpdTpcDigitizerAZlt.cxx
  51. MpdTpcClusterFinderAZ.cxx
  52. MpdTPCpid.cxx
  53. MpdTpcClusterFinderMlem.cxx
  54. MpdTpcEDepParams.cxx
  55. )
  56. Set(HEADERS)
  57. Set(LINKDEF tpcLinkDef.h)
  58. Set(LIBRARY_NAME tpc)
  59. Set(DEPENDENCIES ${FFTW_LIBRARY} Core Base Tof Gdml)
  60. GENERATE_LIBRARY()