# Create a library called "libOnline" which includes the source files given in # the array . # The extension is already found. Any number of sources could be listed here. #set(GLPK_INCLUDE_DIR #${SIMPATH}/basics/glpk/include #${SIMPATH}/include #) set(INCLUDE_DIRECTORIES ${ROOT_INCLUDE_DIR} ${GEANT3_INCLUDE_DIR} ${CLHEP_INCLUDE_DIR} ${BASE_INCLUDE_DIRECTORIES} #${ROOT_INCLUDE_DIR} #${GLPK_INCLUDE_DIR} #${CMAKE_SOURCE_DIR}/fairtools #${CMAKE_SOURCE_DIR}/geobase #${CMAKE_SOURCE_DIR}/parbase #${CMAKE_SOURCE_DIR}/base ${CMAKE_SOURCE_DIR}/pnddata ${CMAKE_SOURCE_DIR}/pnddata/MvdData ${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}/online ${CMAKE_SOURCE_DIR}/online/tracking ) include_directories( ${INCLUDE_DIRECTORIES}) #set(GLPK_LIB_DIR #${SIMPATH}/basics/glpk/lib #${SIMPATH}/lib #) set(LINK_DIRECTORIES ${ROOT_LIBRARY_DIR} ${GLPK_LIB_DIR} ) link_directories( ${LINK_DIRECTORIES}) set(ONLINE_SRCS PndOnlineManager.cxx PndOnlineGeometryManager.cxx #PndOnlineHitProducer.cxx PndOnlineAlgoTask.cxx PndOnlineTrack.cxx #PndOnlineROOTWriter.cxx tracking/PndOnlineSttTripletFinder.cxx tracking/PndOnlineSttTripletFinderMini.cxx tracking/PndOnlineSttTriplet.cxx #tracking/PndSttStrawMap.cxx tracking/PndOnlineSTTTemplateTSF.cxx tracking/PndOnlineSTTStdTSF.cxx tracking/PndMCBookkeeper.cxx ) if(RULE_CHECKER_FOUND) CHECK_RULES("${ONLINE_SRCS}" "${INCLUDE_DIRECTORIES}" ONLINE_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 ONLINE_HEADERS "${ONLINE_SRCS}") set(ONLINE_LINKDEF OnlineLinkDef.h) set(ONLINE_DICTIONARY ${CMAKE_CURRENT_BINARY_DIR}/PndOnlineDict.cxx) ROOT_GENERATE_DICTIONARY("${ONLINE_HEADERS}" "${ONLINE_LINKDEF}" "${ONLINE_DICTIONARY}" "${INCLUDE_DIRECTORIES}") SET(ONLINE_SRCS ${ONLINE_SRCS} ${ONLINE_DICTIONARY}) add_library(Online SHARED ${ONLINE_SRCS}) target_link_libraries(Online ${ROOT_LIBRARIES} ${GLPK_LIB_DIR}/libglpk.so) set_target_properties(Online PROPERTIES ${FAIRROOT_LIBRARY_PROPERTIES}) ################ install ################### install(TARGETS Online DESTINATION ${CMAKE_BINARY_DIR}/lib)