CMakeLists.txt 998 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. ${CMAKE_SOURCE_DIR}/mcord
  14. )
  15. Set(SYSTEM_INCLUDE_DIRECTORIES
  16. ${ROOT_INCLUDE_DIR}
  17. ${CLHEP_INCLUDE_DIR}
  18. ${Boost_INCLUDE_DIRS}
  19. )
  20. include_directories(${INCLUDE_DIRECTORIES})
  21. Include_Directories(SYSTEM ${SYSTEM_INCLUDE_DIRECTORIES})
  22. set(LINK_DIRECTORIES
  23. ${ROOT_LIBRARY_DIR}
  24. ${FAIRROOT_LIBRARY_DIR}
  25. )
  26. link_directories(${LINK_DIRECTORIES})
  27. # List of source files
  28. set(SRCS
  29. MpdMcord.cxx
  30. MpdMcordGeo.cxx
  31. MpdMcordGeoPar.cxx
  32. MpdMcordPoint.cxx
  33. MpdMcordContFact.cxx
  34. )
  35. Set(HEADERS)
  36. Set(LINKDEF McordLinkDef.h)
  37. Set(LIBRARY_NAME Mcord)
  38. Set(DEPENDENCIES Core Base)
  39. GENERATE_LIBRARY()