# 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}/pnddata ${CMAKE_SOURCE_DIR}/pnddata/SttData ${CMAKE_SOURCE_DIR}/pnddata/SciTData ${CMAKE_SOURCE_DIR}/trackbase ${CMAKE_SOURCE_DIR}/pnddata/TrackData ${CMAKE_SOURCE_DIR}/field ${CMAKE_SOURCE_DIR}/stt ${CMAKE_SOURCE_DIR}/sttmvdtracking ${CMAKE_SOURCE_DIR}/mvd/MvdTracking ${CMAKE_SOURCE_DIR}/pnddata/SdsData ${CMAKE_SOURCE_DIR}/gem ${CMAKE_SOURCE_DIR}/pnddata/GemData ${CMAKE_SOURCE_DIR}/geane ${CMAKE_SOURCE_DIR}/tracking ${CMAKE_SOURCE_DIR}/PndTools/generalTools/ ${CMAKE_SOURCE_DIR}/tracking/TrkSecondary ${CMAKE_SOURCE_DIR}/tracking/TrkStructure ${CMAKE_SOURCE_DIR}/tracking/TrkAlgo ${CMAKE_SOURCE_DIR}/tracking/TrkData ${CMAKE_SOURCE_DIR}/tracking/prototype ${CMAKE_SOURCE_DIR}/unpack ) include_directories( ${INCLUDE_DIRECTORIES}) set(LINK_DIRECTORIES ${ROOT_LIBRARY_DIR} ${FAIRROOT_LIBRARY_DIR} ) link_directories( ${LINK_DIRECTORIES}) set(SRCS #Put here your sourcefiles PndSttRawHit.cxx PndSttUnpack.cxx PndSttRawAna.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 Base ParBase PndData Stt TrkBase) GENERATE_LIBRARY()