set(INCLUDE_DIRECTORIES ${INCLUDE_DIRECTORIES} #put here all directories where header files are located ${CBMROOT_SOURCE_DIR}/tutorials/reco/ ${CBMROOT_SOURCE_DIR}/base ${CBMROOT_SOURCE_DIR}/cbmbase ${CBMROOT_SOURCE_DIR}/parbase ${CBMROOT_SOURCE_DIR}/geobase ${CBMROOT_SOURCE_DIR}/cbmdata ${CBMROOT_SOURCE_DIR}/cbmdata/global ${CBMROOT_SOURCE_DIR}/cbmdata/sts ${CBMROOT_SOURCE_DIR}/cbmdata/much ) include_directories( ${INCLUDE_DIRECTORIES}) set(LINK_DIRECTORIES ${ROOT_LIBRARY_DIR} ) link_directories( ${LINK_DIRECTORIES}) set(TUTORIALRECO_SRCS #Put here your source files CbmMuonAnalysis.cxx ) # fill list of header files from list of source files # by exchanging the file extension CHANGE_FILE_EXTENSION(*.cxx *.h TUTORIALRECO_HEADERS "${TUTORIALRECO_SRCS}") set(TUTORIALRECO_LINKDEF TutorialRecoLinkDef.h) set(TUTORIALRECO_DICTIONARY ${CMAKE_CURRENT_BINARY_DIR}/CbmTutorialRecoDict.cxx) ROOT_GENERATE_DICTIONARY("${TUTORIALRECO_HEADERS}" "${TUTORIALRECO_LINKDEF}" "${TUTORIALRECO_DICTIONARY}" "${INCLUDE_DIRECTORIES}") set(TUTORIALRECO_SRCS ${TUTORIALRECO_SRCS} ${TUTORIALRECO_DICTIONARY}) add_library(TutorialReco SHARED ${TUTORIALRECO_SRCS}) target_link_libraries(TutorialReco ${ROOT_LIBRARIES}) set_target_properties(TutorialReco PROPERTIES ${FAIRROOT_LIBRARY_PROPERTIES}) ################ install ################### install(TARGETS TutorialReco DESTINATION ${CMAKE_BINARY_DIR}/lib)