CMakeLists.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 "libPassive" which includes the source files given in
  9. # the array .
  10. # The extension is already found. Any number of sources could be listed here.
  11. Set(INCLUDE_DIRECTORIES
  12. ${BASE_INCLUDE_DIRECTORIES}
  13. ${CMAKE_SOURCE_DIR}/passive
  14. )
  15. Include_Directories( ${INCLUDE_DIRECTORIES})
  16. Include_Directories(SYSTEM ${SYSTEM_INCLUDE_DIRECTORIES})
  17. Set(LINK_DIRECTORIES
  18. ${ROOT_LIBRARY_DIR}
  19. ${FAIRROOT_LIBRARY_DIR}
  20. )
  21. Link_Directories(${LINK_DIRECTORIES})
  22. Set(SRCS
  23. FairCave.cxx
  24. FairGeoCave.cxx
  25. FairGeoMagnet.cxx
  26. FairGeoPassivePar.cxx
  27. FairGeoPipe.cxx
  28. FairGeoTarget.cxx
  29. FairMagnet.cxx
  30. FairPassiveContFact.cxx
  31. FairPipe.cxx
  32. FairTarget.cxx
  33. )
  34. Set(HEADERS )
  35. Set(LINKDEF PassiveLinkDef.h)
  36. Set(LIBRARY_NAME Passive)
  37. Set(DEPENDENCIES Base GeoBase ParBase Geom Core)
  38. GENERATE_LIBRARY()