Last change
on this file since e1e72fd was 03381ed, checked in by Pavel Demin <pavel-demin@…>, 6 years ago |
fix formatting in modules/CMakeLists.txt
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | include_directories(
|
---|
2 | ${CMAKE_SOURCE_DIR}
|
---|
3 | ${ROOT_INCLUDE_DIRS}
|
---|
4 | ${DelphesExternals_INCLUDE_DIR}
|
---|
5 | )
|
---|
6 |
|
---|
7 | file(GLOB sources *.cc)
|
---|
8 | file(GLOB headers *.h)
|
---|
9 | list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/FastJetLinkDef.h)
|
---|
10 | list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/ModulesLinkDef.h)
|
---|
11 | list(REMOVE_ITEM headers ${CMAKE_CURRENT_SOURCE_DIR}/Pythia8LinkDef.h)
|
---|
12 |
|
---|
13 | DELPHES_GENERATE_DICTIONARY(FastJetDict ${headers} LINKDEF FastJetLinkDef.h)
|
---|
14 | DELPHES_GENERATE_DICTIONARY(ModulesDict ${headers} LINKDEF ModulesLinkDef.h)
|
---|
15 |
|
---|
16 | if(PYTHIA8_FOUND)
|
---|
17 | DELPHES_GENERATE_DICTIONARY(Pythia8Dict ${headers} LINKDEF Pythia8LinkDef.h)
|
---|
18 | add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx Pythia8Dict.cxx)
|
---|
19 | else()
|
---|
20 | list(REMOVE_ITEM sources ${CMAKE_CURRENT_SOURCE_DIR}/PileUpMergerPythia8.cc)
|
---|
21 | add_library(modules OBJECT ${sources} FastJetDict.cxx ModulesDict.cxx)
|
---|
22 | endif()
|
---|
23 |
|
---|
24 | # install headers
|
---|
25 | install(FILES ${headers} DESTINATION include/modules)
|
---|
26 |
|
---|
27 | # install pcms if they are created
|
---|
28 | if (NOT ${ROOT_VERSION} VERSION_LESS "6.0.0")
|
---|
29 | install(FILES
|
---|
30 | ${PROJECT_BINARY_DIR}/modules/libModulesDict_rdict.pcm
|
---|
31 | ${PROJECT_BINARY_DIR}/modules/libFastJetDict_rdict.pcm
|
---|
32 | DESTINATION lib)
|
---|
33 | if(PYTHIA8_FOUND)
|
---|
34 | install(FILES
|
---|
35 | ${PROJECT_BINARY_DIR}/modules/libPythia8Dict_rdict.pcm
|
---|
36 | DESTINATION lib)
|
---|
37 | endif()
|
---|
38 | endif()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.