CMakeLists.txt 840 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Create a library called "libNDet" 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. ${CMAKE_SOURCE_DIR}/geobase
  6. ${CMAKE_SOURCE_DIR}/parbase
  7. ${CMAKE_SOURCE_DIR}/base
  8. ${CMAKE_SOURCE_DIR}/mcstack
  9. ${CMAKE_SOURCE_DIR}/ndet
  10. ${CMAKE_SOURCE_DIR}/fairtools
  11. )
  12. Set(SYSTEM_INCLUDE_DIRECTORIES
  13. ${ROOT_INCLUDE_DIR}
  14. )
  15. include_directories(${INCLUDE_DIRECTORIES})
  16. Include_Directories(SYSTEM ${SYSTEM_INCLUDE_DIRECTORIES})
  17. set(LINK_DIRECTORIES
  18. ${ROOT_LIBRARY_DIR}
  19. )
  20. link_directories(${LINK_DIRECTORIES})
  21. # List of source files
  22. set(SRCS
  23. MpdNDetPoint.cxx
  24. MpdNDetPointLite.cxx
  25. MpdNDetParam.cxx
  26. MpdNDet.cxx
  27. MpdNDetAnalysis.cxx
  28. )
  29. Set(HEADERS)
  30. Set(LINKDEF NDetLinkDef.h)
  31. Set(LIBRARY_NAME NDet)
  32. Set(DEPENDENCIES Core Base)
  33. GENERATE_LIBRARY()