include_directories( ${CMAKE_SOURCE_DIR} ${ROOT_INCLUDE_DIRS} ${DelphesExternals_INCLUDE_DIR} ) file(GLOB sources *.cc) file(GLOB headers *.h) list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/DisplayLinkDef.h) DELPHES_GENERATE_DICTIONARY(DisplayDict ${headers} LINKDEF DisplayLinkDef.h) add_library(display OBJECT ${sources} DisplayDict.cxx) # install public headers install(FILES ${headers} DESTINATION include/display) # install all LinkDef files into the same folder to ease user environment install(FILES DisplayLinkDef.h DESTINATION include) # install pcms if they are created if (${ROOT_VERSION} GREATER 6) install(FILES ${PROJECT_BINARY_DIR}/display/libDisplayDict_rdict.pcm DESTINATION lib) endif()