CMakeLists.txt 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Create a library called "libMpdGeneralGenerator"
  2. enable_language (CXX)
  3. set(INCLUDE_DIRECTORIES
  4. ${BASE_INCLUDE_DIRECTORIES}
  5. ${CMAKE_SOURCE_DIR}/generators
  6. ${CMAKE_SOURCE_DIR}/gconfig
  7. ${CMAKE_CURRENT_SOURCE_DIR}/inc
  8. )
  9. Set(SYSTEM_INCLUDE_DIRECTORIES
  10. ${ROOT_INCLUDE_DIR}
  11. )
  12. if(PLUTO_FOUND)
  13. set(SYSTEM_INCLUDE_DIRECTORIES ${SYSTEM_INCLUDE_DIRECTORIES} ${PLUTO_INCLUDE_DIR})
  14. EndIf(PLUTO_FOUND)
  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. if(PLUTO_FOUND)
  22. set(LINK_DIRECTORIES ${LINK_DIRECTORIES} ${PLUTO_LIBRARY_DIR})
  23. EndIf(PLUTO_FOUND)
  24. Link_Directories(${LINK_DIRECTORIES})
  25. configure_file(inc/MpdGeneralGenerator.h inc/MpdGeneralGenerator.h COPYONLY)
  26. configure_file(inc/LinkDef.h inc/LinkDef.h COPYONLY)
  27. set(SRCS
  28. src/MpdGeneralGenerator.cxx
  29. )
  30. set(HEADERS
  31. inc/MpdGeneralGenerator.h
  32. )
  33. Set(LINKDEF inc/LinkDef.h)
  34. Set(LIBRARY_NAME MpdGeneralGenerator)
  35. Set(DEPENDENCIES Core Base)
  36. GENERATE_LIBRARY()