Fork me on GitHub

source: git/modules/CMakeLists.txt@ 9047a02

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 9047a02 was 3d19203, checked in by Pavel Demin <pavel-demin@…>, 7 years ago

add PYTHIA8_FOUND to modules/CMakeLists.txt

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[7fe06d6]1include_directories(
2 ${CMAKE_SOURCE_DIR}
3 ${ROOT_INCLUDE_DIRS}
4 ${DelphesExternals_INCLUDE_DIR}
5)
6
7file(GLOB sources *.cc)
8file(GLOB headers *.h)
[ce4b888]9list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/FastJetLinkDef.h)
[7fe06d6]10list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ModulesLinkDef.h)
11list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/Pythia8LinkDef.h)
12
[ce4b888]13DELPHES_GENERATE_DICTIONARY(FastJetDict ${headers} LINKDEF FastJetLinkDef.h)
[be6c1c8]14DELPHES_GENERATE_DICTIONARY(ModulesDict ${headers} LINKDEF ModulesLinkDef.h)
[7fe06d6]15
[3d19203]16if(PYTHIA8_FOUND)
17 DELPHES_GENERATE_DICTIONARY(Pythia8Dict ${headers} LINKDEF Pythia8LinkDef.h)
18 add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx Pythia8Dict.cxx)
19else()
20 list(REMOVE_ITEM sources ${CMAKE_CURRENT_SOURCE_DIR}/PileUpMergerPythia8.cc)
21 add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx)
22endif()
[255a666]23
[9259bfe]24# install headers
25install(FILES ${headers} DESTINATION include/modules)
[0f5bf9d]26
27# install pcms if they are created
[f08ddc6]28if (NOT ${ROOT_VERSION} VERSION_LESS "6.0.0")
[0f5bf9d]29 install(FILES
30 ${PROJECT_BINARY_DIR}/modules/libModulesDict_rdict.pcm
31 ${PROJECT_BINARY_DIR}/modules/libFastJetDict_rdict.pcm
32 DESTINATION lib)
33endif()
Note: See TracBrowser for help on using the repository browser.