CMakeLists.txt 716 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Create a library called "libTHadgen"
  2. enable_language (C CXX Fortran)
  3. set(INCLUDE_DIRECTORIES
  4. ${CMAKE_CURRENT_SOURCE_DIR}/inc
  5. ${TSHIELD_ROOT_PATH}/hadgen/inc
  6. )
  7. Set(SYSTEM_INCLUDE_DIRECTORIES
  8. ${ROOT_INCLUDE_DIR}
  9. )
  10. include_directories(${INCLUDE_DIRECTORIES})
  11. Include_Directories(SYSTEM ${SYSTEM_INCLUDE_DIRECTORIES})
  12. link_directories(
  13. ${ROOT_LIBRARY_DIR}
  14. ${FAIRROOT_LIBRARY_DIR}
  15. )
  16. configure_file(inc/THadgen.h inc/THadgen.h COPYONLY)
  17. configure_file(inc/LinkDef.h inc/LinkDef.h COPYONLY)
  18. # List of source files
  19. set(SRCS
  20. src/THadgen.cxx
  21. src/THadgenRoutines.cxx
  22. )
  23. set(HEADERS inc/THadgen.h)
  24. Set(LINKDEF inc/LinkDef.h)
  25. Set(LIBRARY_NAME THadgen)
  26. Set(DEPENDENCIES HADGEN Core Base)
  27. GENERATE_LIBRARY()