# Create a library called "libNewDetector" 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 ${CMAKE_SOURCE_DIR}/fairtools ${CMAKE_SOURCE_DIR}/base #${CMAKE_SOURCE_DIR}/ #${CMAKE_SOURCE_DIR}/ ${CMAKE_SOURCE_DIR}/parbase ${CMAKE_SOURCE_DIR}/geobase ${CMAKE_SOURCE_DIR}/tutorial/NewDetector ) include_directories( ${INCLUDE_DIRECTORIES}) set(LINK_DIRECTORIES ${ROOT_LIBRARY_DIR} ) link_directories( ${LINK_DIRECTORIES}) set(SRCS #Put here your sourcefiles NewDetector.cxx NewDetectorContFact.cxx NewDetectorGeo.cxx NewDetectorGeoPar.cxx NewDetectorPoint.cxx ) Set(LINKDEF NewDetectorLinkDef.h) Set(LIBRARY_NAME NewDetector) Set(DEPENDENCIES Base ) GENERATE_LIBRARY()