# Create a library called "libCbmBeamtime" 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 ${BASE_INCLUDE_DIRECTORIES} ${Boost_INCLUDE_DIR} ${CBMROOT_SOURCE_DIR}/cbmbase ${CBMROOT_SOURCE_DIR}/cbmdata ${CBMROOT_SOURCE_DIR}/cbmdata/sts ${CBMROOT_SOURCE_DIR}/cbmdata/much ${CBMROOT_SOURCE_DIR}/cbmdata/fhodo ${CBMROOT_SOURCE_DIR}/roc/roclib ${CBMROOT_SOURCE_DIR}/beamtime ${CBMROOT_SOURCE_DIR}/beamtime/fhodo ) Include_Directories( ${INCLUDE_DIRECTORIES} ) Set(LINK_DIRECTORIES ${ROOT_LIBRARY_DIR} ) Link_Directories( ${LINK_DIRECTORIES} ) Set(SRCS CbmDaqMap.cxx CbmRocSource.cxx CbmStsDigiTb.cxx CbmMuchDigiTb.cxx CbmSourceLmd.cxx CbmTbDaqBuffer.cxx fhodo/CbmFiberHodoClusterFinder.cxx ) # Add artificial dependency which delays the compilation of the defined file # until the libRoc.so is produced which is needed for the linking of the # beamtime library. I couldn't find any better solution for the problem up # to now. Set_Source_Files_Properties(PROPERTIES CbmRocSource.cxx PROPERTIES OBJECT_DEPENDS ${LIBRARY_OUTPUT_PATH}/libRoc.so ) Set(LINKDEF CbmBeamtimeLinkDef.h) Set(LIBRARY_NAME CbmBeamtime) Set(DEPENDENCIES ${LIBRARY_OUTPUT_PATH}/libDabcRoc.so ${LIBRARY_OUTPUT_PATH}/libDabcMbs.so ${LIBRARY_OUTPUT_PATH}/libDabcBase.so ${LIBRARY_OUTPUT_PATH}/libRoc.so CbmData CbmBase # ${LIBRARY_OUTPUT_PATH}/libRocDict.so Base ) GENERATE_LIBRARY()