# Create a library called "" 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} ${GEANT3_INCLUDE_DIR} ${CLHEP_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/geobase ${CMAKE_SOURCE_DIR}/parbase ${CMAKE_SOURCE_DIR}/base ${CMAKE_SOURCE_DIR}/field ${CMAKE_SOURCE_DIR}/pnddata ${CMAKE_SOURCE_DIR}/pnddata/MvdData ${CMAKE_SOURCE_DIR}/passive ${CMAKE_SOURCE_DIR}/PndTools/riemannfit ${CMAKE_SOURCE_DIR}/ssd/SsdMC ${CMAKE_SOURCE_DIR}/ssd/SsdDigi ${CMAKE_SOURCE_DIR}/ssd/SsdTools ${CMAKE_SOURCE_DIR}/ssd/SsdDAQ ${CMAKE_SOURCE_DIR}/ssd/SsdReco ${CMAKE_SOURCE_DIR}/ssd/MvdMC ${CMAKE_SOURCE_DIR}/ssd/DmlMC ${CMAKE_SOURCE_DIR}/ssd/DmlTrk ${CMAKE_SOURCE_DIR}/ssd ${CMAKE_SOURCE_DIR}/genfit ${CMAKE_SOURCE_DIR}/recotasks ${CMAKE_SOURCE_DIR}/trackbase ${CMAKE_SOURCE_DIR}/trackrep ${CMAKE_SOURCE_DIR}/geane ${CMAKE_SOURCE_DIR}/tpc ) #${CMAKE_SOURCE_DIR}/mvd/MvdData #${CMAKE_SOURCE_DIR}/mvd/MvdReco #${CMAKE_SOURCE_DIR}/mvd/MvdPid #${CMAKE_SOURCE_DIR}/mvd/MvdTracking #${CMAKE_SOURCE_DIR}/mvd/transport include_directories( ${INCLUDE_DIRECTORIES}) set(LINK_DIRECTORIES ${ROOT_LIBRARY_DIR} ) link_directories( ${LINK_DIRECTORIES}) ########################### create libSsd ###################################### set(SSD_SRCS #SsdDigi/PndSsdCalcFePixel.cxx #SsdDigi/PndSsdCalcPixel.cxx SsdDigi/PndSsdCalcStrip.cxx SsdDigi/PndSsdCalcStripDif.cxx SsdDigi/PndSsdDigiAna.cxx #SsdDigi/PndSsdHybridHitProducer.cxx SsdDigi/PndSsdStripHitProducer.cxx SsdDigi/PndSsdStripHitProducerDif.cxx SsdDigi/PndSsdHitProducerIdeal.cxx SsdDigi/PndSsdDigiTask.cxx SsdDigi/PndSsdNoiseProducer.cxx MvdMC/PndDvmDetector.cxx LmdMC/PndDmlDetector.cxx SsdMC/PndSsdDetector.cxx #MvdMC/PndMvdGeo.cxx SsdMC/PndSsdGeoPar.cxx #MvdMC/PndMvdMaterialDet.cxx SsdTools/PndSsdContFact.cxx SsdTools/PndSsdPixelDigiPar.cxx SsdTools/PndSsdStripDigiPar.cxx SsdTools/PndSsdAccessRTDBTask.cxx SsdTools/PndStringVector.cxx SsdTools/PndSsdGeoHandling.cxx #SsdTools/PndSsdEventAna.cxx #SsdTools/PndSsdMCEventAna.cxx #SsdTools/PndSsdDigiEventAna.cxx #SsdTools/PndSsdAllDataEventAna.cxx SsdTools/PndSsdFileNameCreator.cxx SsdTools/PndGeoHitList.cxx SsdTools/PndEventDisplay.cxx #SsdTools/PndSsdEventAnaTask.cxx SsdTools/PndSsdEventMerger.cxx SsdTools/PndSsdEventMergerTask.cxx #SsdTools/PndSsdMSAnaTask.cxx SsdDAQ/PndSsdConvertApv.cxx SsdDAQ/PndSsdConvertApvTask.cxx ) set (SSD_RULECHECKER_SRCS ${SSD_SRCS}) # fill list of header files from list of source files # by exchanging the file extension CHANGE_FILE_EXTENSION(*.cxx *.h SSD_HEADERS "${SSD_SRCS}") # SET(SSD_SRCS ${SSD_SRCS} ${DIGI_SRCS}) # SET(SSD_HEADERS ${SSD_HEADERS} ${DIGI_HEADERS}) set(SSD_LINKDEF SsdLinkDef.h) set(SSD_DICTIONARY ${CMAKE_CURRENT_BINARY_DIR}/SsdDict.cxx) ROOT_GENERATE_DICTIONARY("${SSD_HEADERS}" "${SSD_LINKDEF}" "${SSD_DICTIONARY}" "${INCLUDE_DIRECTORIES}") SET(SSD_SRCS ${SSD_SRCS} ${SSD_DICTIONARY}) add_library(Ssd SHARED ${SSD_SRCS}) target_link_libraries(Ssd ${ROOT_LIBRARIES}) set_target_properties(Ssd PROPERTIES ${FAIRROOT_LIBRARY_PROPERTIES}) ########################### create libSsdReco ################################## set(SSDRECO_SRCS #SsdReco/PndSsdRecoTask.cxx SsdReco/PndSsdClusterTask.cxx #SsdReco/PndSsdPixelClusterFinder.cxx #SsdReco/PndSsdSimplePixelClusterFinder.cxx #SsdReco/PndSsdIdealPixelClusterFinder.cxx #SsdReco/PndSsdPixelClusterTask.cxx #SsdReco/PndSsdIdealClusterTask.cxx #SsdReco/PndSsdChargeWeightedPixelMapping.cxx SsdReco/PndSsdStripClusterBuilder.cxx SsdReco/PndSsdSimpleStripClusterFinder.cxx SsdReco/PndSsdStripClusterFinder.cxx SsdReco/PndSsdStripClusterTask.cxx SsdReco/PndSsdIdealRecoTask.cxx SsdReco/PndSsdChargeWeightingAlgorithms.cxx SsdTools/PndSsdRadDamList.cxx SsdTools/PndSsdRadDamTask.cxx #SsdTools/PndSsdAnaRadDam.cxx ) set (SSD_RULECHECKER_SRCS ${SSD_RULECHECKER_SRCS} ${SSDRECO_SRCS}) #if(RULE_CHECKER_FOUND) # CHECK_RULES("${SSD_RULECHECKER_SRCS}" "${INCLUDE_DIRECTORIES}" SSD_RULES) #endif(RULE_CHECKER_FOUND) # fill list of header files from list of source files # by exchanging the file extension CHANGE_FILE_EXTENSION(*.cxx *.h SSDRECO_HEADERS "${SSDRECO_SRCS}") set(SSDRECO_LINKDEF SsdRecoLinkDef.h) set(SSDRECO_DICTIONARY ${CMAKE_CURRENT_BINARY_DIR}/SsdRecoDict.cxx) ROOT_GENERATE_DICTIONARY("${SSDRECO_HEADERS}" "${SSDRECO_LINKDEF}" "${SSDRECO_DICTIONARY}" "${INCLUDE_DIRECTORIES}") SET(SSDRECO_SRCS ${SSDRECO_SRCS} ${SSDRECO_DICTIONARY}) add_library(SsdReco SHARED ${SSDRECO_SRCS}) target_link_libraries(SsdReco ${ROOT_LIBRARIES}) set_target_properties(SsdReco PROPERTIES ${FAIRROOT_LIBRARY_PROPERTIES}) ########################### create libDmlTrk ################################## set(DMLTRK_SRCS #MvdData/PndMvdRecoHit.cxx #MvdPid/PndMvdPidIdealTask.cxx #MvdPid/PndMvdIdealPidAlgo.cxx #MvdPid/PndMvdSimplePidAlgo.cxx #MvdPid/PndMvdAdvancedPidAlgo.cxx LmdTrack/PndDmlTrackFinderTask.cxx LmdTrack/PndDmlLinFitTask.cxx LmdTrack/PndLinTrack.cxx #LmdTrack/FairGeaneTrLmd.cxx #MvdTracking/PndMvdKalmanTask.cxx #MvdTracking/PndMvdRiemannTrackFinderTask.cxx #MvdTracking/PndMvdTrackFinderAnaTask.cxx #MvdTracking/PndMvdTpcRiemannCorrelatorTask.cxx ) set (DML_RULECHECKER_SRCS ${DML_RULECHECKER_SRCS} ${DMLTRK_SRCS}) if(RULE_CHECKER_FOUND) CHECK_RULES("${DML_RULECHECKER_SRCS}" "${INCLUDE_DIRECTORIES}" DML_RULES) endif(RULE_CHECKER_FOUND) # fill list of header files from list of source files # by exchanging the file extension CHANGE_FILE_EXTENSION(*.cxx *.h DMLTRK_HEADERS "${DMLTRK_SRCS}") set(DMLTRK_LINKDEF DmlTrkLinkDef.h) set(DMLTRK_DICTIONARY ${CMAKE_CURRENT_BINARY_DIR}/DmlTrkDict.cxx) ROOT_GENERATE_DICTIONARY("${DMLTRK_HEADERS}" "${DMLTRK_LINKDEF}" "${DMLTRK_DICTIONARY}" "${INCLUDE_DIRECTORIES}") SET(DMLTRK_SRCS ${DMLTRK_SRCS} ${DMLTRK_DICTIONARY}) add_library(DmlTrk SHARED ${DMLTRK_SRCS}) target_link_libraries(DmlTrk ${ROOT_LIBRARIES}) set_target_properties(DmlTrk PROPERTIES ${FAIRROOT_LIBRARY_PROPERTIES}) ################################## install ##################################### install(TARGETS Ssd DESTINATION ${CMAKE_BINARY_DIR}/lib) install(TARGETS SsdReco DESTINATION ${CMAKE_BINARY_DIR}/lib) install(TARGETS DmlTrk DESTINATION ${CMAKE_BINARY_DIR}/lib)