CMakeLists.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ################################################################################
  2. # Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH #
  3. # #
  4. # This software is distributed under the terms of the #
  5. # GNU Lesser General Public Licence version 3 (LGPL) version 3, #
  6. # copied verbatim in the file "LICENSE" #
  7. ################################################################################
  8. # Create a library called "libCluster" which includes the source files given in
  9. # the array
  10. set(INCLUDE_DIRECTORIES
  11. ${CMAKE_SOURCE_DIR}/clustering
  12. )
  13. Set(SYSTEM_INCLUDE_DIRECTORIES
  14. ${ROOT_INCLUDE_DIR}
  15. )
  16. include_directories(${INCLUDE_DIRECTORIES})
  17. Include_Directories(SYSTEM ${SYSTEM_INCLUDE_DIRECTORIES})
  18. set(LINK_DIRECTORIES
  19. ${ROOT_LIBRARY_DIR}
  20. ${FAIRROOT_LIBRARY_DIR}
  21. )
  22. link_directories(${LINK_DIRECTORIES})
  23. # List of source files
  24. set(SRCS
  25. ClusterElement.cxx
  26. Cluster.cxx
  27. ClusterCollection.cxx
  28. ClManager.cxx
  29. )
  30. Set(HEADERS)
  31. Set(LINKDEF ClusterLinkDef.h)
  32. Set(LIBRARY_NAME Cluster)
  33. Set(DEPENDENCIES Core Base)
  34. GENERATE_LIBRARY()