# Create a library called "libR3BCal" which includes the source files given in # the array . # The extension is already found. Any number of sources could be listed here. set(INCLUDE_DIRECTORIES ${ROOT_INCLUDE_DIR} #put here all directories where header files are located ${BASE_INCLUDE_DIRECTORIES} ${CMAKE_SOURCE_DIR}/r3bbase ${CMAKE_SOURCE_DIR}/passive ${CMAKE_SOURCE_DIR}/mcstack ${CMAKE_SOURCE_DIR}/unpack ${CMAKE_SOURCE_DIR}/unpack/calo ${CMAKE_SOURCE_DIR}/unpack/land ${CMAKE_SOURCE_DIR}/unpack/calo ${CMAKE_SOURCE_DIR}/MbsAPI ${CMAKE_SOURCE_DIR}/r3bdata/ ${CMAKE_SOURCE_DIR}/r3bdata/calData ${CMAKE_SOURCE_DIR}/r3bdata/dchData ${CMAKE_SOURCE_DIR}/r3bdata/gfiData ${CMAKE_SOURCE_DIR}/r3bdata/mtofData ${CMAKE_SOURCE_DIR}/r3bdata/tofData ${CMAKE_SOURCE_DIR}/r3bdata/landData ${CMAKE_SOURCE_DIR}/r3bdata/trackerData ) include_directories( ${INCLUDE_DIRECTORIES}) set(LINK_DIRECTORIES ${ROOT_LIBRARY_DIR} ${FAIRROOT_LIBRARY_DIR} ) link_directories( ${LINK_DIRECTORIES}) set(SRCS #Put here your sourcefiles land/R3BLandRawAna.cxx land/R3BLandRawHit.cxx land/R3BLandUnpack.cxx calo/R3BCaloRawAna.cxx calo/R3BCaloRawHit.cxx calo/R3BCaloUnpack.cxx ) # fill list of header files from list of source files # by exchanging the file extension CHANGE_FILE_EXTENSION(*.cxx *.h HEADERS "${SRCS}") set(LINKDEF UnpackLinkDef.h) set(LIBRARY_NAME Unpack) set(DEPENDENCIES R3Bbase R3BPassive MCStack R3BData MbsAPI) GENERATE_LIBRARY()