# Create a library called "libBase" 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} ${CBMROOT_SOURCE_DIR}/mvdstrips ${CBMROOT_SOURCE_DIR}/geobase ${CBMROOT_SOURCE_DIR}/parbase ${CBMROOT_SOURCE_DIR}/field ${CBMROOT_SOURCE_DIR}/base ${CBMROOT_SOURCE_DIR}/passive ${CBMROOT_SOURCE_DIR}/cbmbase ${CBMROOT_SOURCE_DIR}/cbmdata ${CBMROOT_SOURCE_DIR}/cbmdata/mvdstrips ) include_directories( ${INCLUDE_DIRECTORIES}) set(LINK_DIRECTORIES ${ROOT_LIBRARY_DIR} ) link_directories( ${LINK_DIRECTORIES}) set(MVDSTRIPS_SRCS CbmGeoMvdStrips.cxx CbmGeoMvdStripsPar.cxx CbmMvdStrips.cxx CbmMvdStripsContFact.cxx CbmMvdStripsDigiPar.cxx CbmMvdStripsDigiScheme.cxx #CbmMvdStripsIdealDigitize.cxx CbmMvdStripsDigitize.cxx #CbmMvdStripsIdealFindHits.cxx CbmMvdStripsClusterFinder.cxx CbmMvdStripsFindHits.cxx #CbmMvdStripsFindTracks.cxx #CbmMvdStripsFindTracksQa.cxx #CbmMvdStripsFitTracks.cxx #CbmMvdStripsHitProducerIdeal.cxx #CbmMvdStripsIdealMatchHits.cxx CbmMvdStripsMatchHits.cxx #CbmMvdStripsMatchTracks.cxx CbmMvdStripsParAsciiFileIo.cxx CbmMvdStripsParRootFileIo.cxx CbmMvdStripsSensor.cxx CbmMvdStripsSensorDigiPar.cxx CbmMvdStripsSector.cxx CbmMvdStripsSectorDigiPar.cxx CbmMvdStripsStation.cxx CbmMvdStripsStationDigiPar.cxx #CbmMvdStripsTrackFinderIdeal.cxx #CbmMvdStripsTrackFitterIdeal.cxx CbmMvdStripsSimulationQa.cxx CbmMvdStripsFindHitsQa.cxx CbmMvdStripsReconstructionQa.cxx ) if(RULE_CHECKER_FOUND) CHECK_RULES("${MVDSTRIPS_SRCS}" "${INCLUDE_DIRECTORIES}" MVDSTRIPS_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 MVDSTRIPS_HEADERS "${MVDSTRIPS_SRCS}") set(MVDSTRIPS_LINKDEF MvdStripsLinkDef.h) set(MVDSTRIPS_DICTIONARY ${CMAKE_CURRENT_BINARY_DIR}/CbmMvdStripsDict.cxx) ROOT_GENERATE_DICTIONARY("${MVDSTRIPS_HEADERS}" "${MVDSTRIPS_LINKDEF}" "${MVDSTRIPS_DICTIONARY}" "${INCLUDE_DIRECTORIES}") set(MVDSTRIPS_SRCS ${MVDSTRIPS_SRCS} ${MVDSTRIPS_DICTIONARY}) add_library(MvdStrips SHARED ${MVDSTRIPS_SRCS}) target_link_libraries(MvdStrips ${ROOT_LIBRARIES}) set_target_properties(MvdStrips PROPERTIES ${FAIRROOT_LIBRARY_PROPERTIES}) ################ install ################### install(TARGETS MvdStrips DESTINATION ${CMAKE_BINARY_DIR}/lib)