# Create a library called "libCbmKolkataDetector" 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} #put here all directories where header files are located ${CBMROOT_SOURCE_DIR}/fairtools ${CBMROOT_SOURCE_DIR}/base ${CBMROOT_SOURCE_DIR}/cbmbase ${CBMROOT_SOURCE_DIR}/cbmdata ${CBMROOT_SOURCE_DIR}/parbase ${CBMROOT_SOURCE_DIR}/geobase ${CBMROOT_SOURCE_DIR}/kolkataDetector ${CBMROOT_SOURCE_DIR}/kolkataDetector/data ${CBMROOT_SOURCE_DIR}/kolkataDetector/simulation ) include_directories( ${INCLUDE_DIRECTORIES}) set(LINK_DIRECTORIES ${ROOT_LIBRARY_DIR} ) link_directories( ${LINK_DIRECTORIES}) set(SRCS #Put here your sourcefiles simulation/CbmKolkataDetector.cxx simulation/CbmKolkataDetectorContFact.cxx simulation/CbmKolkataDetectorGeo.cxx simulation/CbmKolkataDetectorGeoPar.cxx data/CbmKolkataDetectorPoint.cxx ) Set(HEADERS ) Set(LINKDEF CbmKolkataDetectorLinkDef.h) Set(LIBRARY_NAME CbmKolkataDetector) GENERATE_LIBRARY()