# 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} ${CLHEP_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/geobase ${CMAKE_SOURCE_DIR}/parbase ${CMAKE_SOURCE_DIR}/base ${CMAKE_SOURCE_DIR}/field ${CMAKE_SOURCE_DIR}/passive ${CMAKE_SOURCE_DIR}/genfit ${CMAKE_SOURCE_DIR}/tpc ${CMAKE_SOURCE_DIR}/tpc/test ) include_directories( ${INCLUDE_DIRECTORIES}) set(LINK_DIRECTORIES ${ROOT_LIBRARY_DIR} ) link_directories( ${LINK_DIRECTORIES}) set(TPC_SRCS TpcGeo.cxx TpcGeoPar.cxx TpcContFact.cxx TpcDetector.cxx TpcPoint.cxx TpcClusterizerTask.cxx TpcGas.cxx TpcPrimaryCluster.cxx LinearInterpolPolicy.cxx TpcDriftedElectron.cxx TpcDriftTask.cxx TpcAvalanche.cxx TpcGem.cxx TpcGemTask.cxx TpcSignal.cxx TpcSignalAge.cxx McId.cxx TpcAbsPadShape.cxx TpcPRLookupTable.cxx TpcPadPlane.cxx TpcPad.cxx TpcPadShapePool.cxx TpcPadShapeSquare.cxx TpcPadShapePolygon.cxx TpcPadResponseTask.cxx TpcFrontend.cxx TpcAdcTask.cxx McIdCollection.cxx TpcSample.cxx TpcCRRCPulseshape.cxx TpcDigitizationPolicy.cxx TpcDigi.cxx TpcDigiAge.cxx TpcDigiMapper.cxx TpcSimplePSAStrategy.cxx TpcPSATask.cxx TpcSpaceChargeTask.cxx TpcAbsField.cxx TpcFieldCylGrid.cxx TpcEFieldCyl.cxx TpcEFieldCylLoader.cxx TpcDevmapCyl.cxx TpcDevmapCylLoader.cxx TpcEvtMixTask.cxx TpcElectronicsTask.cxx TpcClusterFinderTask.cxx TpcCluster.cxx TpcClusterRadius.cxx TORPadProcessor.cxx TORPPState_Initial.cxx TORPPState_Compare.cxx TORPPState_Output.cxx TORPPState_Send.cxx TORPPState_Wait.cxx TpcSectorProcessor.cxx TpcRungeKutta.cxx TpcInhFieldDrifter.cxx test/TpcTester.cxx TpcPSAplot.cxx ) # fill list of header files from list of source files # by exchanging the file extension CHANGE_FILE_EXTENSION(*.cxx *.h TPC_HEADERS "${TPC_SRCS}") set(TPC_LINKDEF tpcLinkDef.h) set(TPC_DICTIONARY ${CMAKE_CURRENT_BINARY_DIR}/tpcDict.cxx) ROOT_GENERATE_DICTIONARY("${TPC_HEADERS}" "${TPC_LINKDEF}" "${TPC_DICTIONARY}" "${INCLUDE_DIRECTORIES}") SET(TPC_SRCS ${TPC_SRCS} ${TPC_DICTIONARY} DebugLogger.cxx dbgstream.cxx) add_library(tpc SHARED ${TPC_SRCS}) target_link_libraries(tpc ${ROOT_LIBRARIES}) set_target_properties(tpc PROPERTIES VERSION 0.0.1 SOVERSION 0 ) ################ install ################### install(TARGETS tpc DESTINATION ${CMAKE_BINARY_DIR}/lib)