CMakeLists.txt 858 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Create a library called "libKalman" 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}/mpdbase
  7. ${CMAKE_SOURCE_DIR}/mpdfield
  8. ${CMAKE_SOURCE_DIR}/kalman
  9. )
  10. Set(SYSTEM_INCLUDE_DIRECTORIES
  11. ${ROOT_INCLUDE_DIR}
  12. )
  13. include_directories(${INCLUDE_DIRECTORIES})
  14. Include_Directories(SYSTEM ${SYSTEM_INCLUDE_DIRECTORIES})
  15. set(LINK_DIRECTORIES
  16. ${ROOT_LIBRARY_DIR}
  17. ${FAIRROOT_LIBRARY_DIR}
  18. )
  19. link_directories( ${LINK_DIRECTORIES})
  20. # List of source files
  21. set(SRCS
  22. MpdKalmanFilter.cxx
  23. MpdKalmanGeoScheme.cxx
  24. MpdKalmanHit.cxx
  25. MpdKalmanTrack.cxx
  26. MpdTpcKalmanTrack.cxx
  27. )
  28. Set(HEADERS)
  29. Set(LINKDEF KalmanLinkDef.h)
  30. Set(LIBRARY_NAME Kalman)
  31. Set(DEPENDENCIES Core Base MpdField MpdBase)
  32. GENERATE_LIBRARY()