# 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}/base ${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/UEvent.cxx src/UManager.cxx src/UParticle.cxx src/URun.cxx src/UTask.cxx ) Set(HEADERS include/UEvent.h include/UManager.h include/UParticle.h include/URun.h include/UTask.h ) Set(LINKDEF include/UniGenLinkDef.h) Set(LIBRARY_NAME UniGen) Set(DEPENDENCIES ) GENERATE_LIBRARY() Install(TARGETS ${LIBRARY_NAME} DESTINATION ${INSTALL_DIR}/lib)