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}/FastJetLinkDef.h) list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ModulesLinkDef.h) list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/Pythia8LinkDef.h) DELPHES_GENERATE_DICTIONARY(FastJetDict ${headers} LINKDEF FastJetLinkDef.h) DELPHES_GENERATE_DICTIONARY(ModulesDict ${headers} LINKDEF ModulesLinkDef.h) # TODO: implement switch to enable Pythia8 if present list(REMOVE_ITEM sources ${CMAKE_CURRENT_SOURCE_DIR}/PileUpMergerPythia8.cc) add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx) # install public headers install(FILES Delphes.h DESTINATION include/modules ) # install pcms if they are created if (${ROOT_VERSION} GREATER 6) install(FILES ${PROJECT_BINARY_DIR}/modules/libModulesDict_rdict.pcm ${PROJECT_BINARY_DIR}/modules/libFastJetDict_rdict.pcm DESTINATION lib) endif()