# Create a library called "libBase" 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} ${CMAKE_SOURCE_DIR}/tasks ${CMAKE_SOURCE_DIR}/tasks/include ${CMAKE_SOURCE_DIR}/base/include ) include_directories( ${INCLUDE_DIRECTORIES}) set(LINK_DIRECTORIES ${ROOT_LIBRARY_DIR} ) link_directories( ${LINK_DIRECTORIES}) # List of source files set(SRCS src/UTaskCm2Lab.cxx src/UTaskFilter.cxx src/UTaskGetInelastic.cxx src/UTaskKin.cxx src/UTaskLab2Cm.cxx src/UTaskRead.cxx src/UTaskWrite.cxx ) Set(HEADERS include/UTaskCm2Lab.h include/UTaskFilter.h include/UTaskGetInelastic.h include/UTaskKin.h include/UTaskLab2Cm.h include/UTaskRead.h include/UTaskWrite.h ) Set(LINKDEF include/TasksLinkDef.h) Set(LIBRARY_NAME Tasks) Set(DEPENDENCIES ) GENERATE_LIBRARY() Install(TARGETS ${LIBRARY_NAME} DESTINATION ${INSTALL_DIR}/lib)