CMakeLists.txt 726 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Create a library called "libMCStack" 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. ${ROOT_INCLUDE_DIR}
  6. ${Boost_INCLUDE_DIRS}
  7. ${BASE_INCLUDE_DIRECTORIES}
  8. ${CMAKE_SOURCE_DIR}/mcstack
  9. ${CMAKE_SOURCE_DIR}/generators
  10. )
  11. include_directories( ${INCLUDE_DIRECTORIES})
  12. set(LINK_DIRECTORIES
  13. ${ROOT_LIBRARY_DIR}
  14. ${FAIRROOT_LIBRARY_DIR}
  15. )
  16. link_directories(${LINK_DIRECTORIES})
  17. set(SRCS
  18. MpdStack.cxx
  19. MpdMCTrack.cxx
  20. )
  21. set(HEADERS
  22. MpdStack.h
  23. MpdMCTrack.h
  24. MpdDetectorList.h
  25. )
  26. Set(LINKDEF MpdMCStackLinkDef.h)
  27. Set(LIBRARY_NAME MpdMCStack)
  28. Set(DEPENDENCIES Base EG Physics Core MpdGen)
  29. GENERATE_LIBRARY()